If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > SQL User Instance - close open connection after attach a database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-27-11, 12:56
RBrattas RBrattas is offline
Registered User
 
Join Date: Dec 2011
Posts: 1
SQL User Instance - close open connection after attach a database

Hi,

I am running a LightSwitch (LS) app; 1 table with 1 screen. I run the app and insert a record in my table, which works fine. After I close my app.

Then I attach the LS database to SQL Server Management Studio (SSMS) and insert a record by INSERT command.

After I run my LS app again and the database connection is not working; the LS do not display any data.

LS uses a User Instance to connect to the database (db), and LS can't do ANYTHING if it has an open connection to the db file.

How do I close all connections to my LS db after inserted a record with SSMS?

Is there a command I can run to see open connection and close all connections in SSMS?

I have tried to detach the database with and without drop connections and update statistics; without having success to have my LS app to run.

Thank you,
Reply With Quote
Reply

Tags
close connection, open connection, sql user instance

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On