Cassie Mod

Cassie Mod

  • NA
  • 488
  • 70.5k

c# how to specify wich database to use

Apr 26 2016 5:31 AM
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)