5
Reply

c# how to specify wich database to use

Cassie Mod

Cassie Mod

Apr 26 2016 5:31 AM
324
HI, How can I specify wich database to use ?
i'm am making a webapp . each customer get there own database( about 4000 customers).
 
SO I was wundering can I do
 
DECLARE @CLAdatabase  = test_db  
 
USE @CLAdatabase
GO
 
SELECT* from
customers 

Answers (5)