Tuesday, 27 August 2013

create sql table in SQLServer with the name of the current session variable c#

create sql table in SQLServer with the name of the current session
variable c#

I am developing an application in c #. Net and I need to create a table in
sql with the name of the current session variable. How I can send the
value of the session variable to current sql server to create this query?
My idea is something like this: In sql server:
CREATE TABLE Customer_ + 'current user name' // current session variable
in c#
(First_Name char(50),
Last_Name char(50),
Address char(50),
City char(50),
Country char(25),
Birth_Date datetime);
Thank you very much for your help.

No comments:

Post a Comment