Thread: SQL Schema Problem !
04-20-13, 08:57 #1Registered User
- Join Date
- Apr 2013
Unanswered: SQL Schema Problem !
i have database and set default table schema to "ray" and me must input ruy.TABLE-NAME for retrive data !!! , i need set Default Schema to current user for call database as just database name(for my program) , how changed it ?
(i change default schema for current user by alter command but not worked !)
04-22-13, 10:39 #2Annie's Dog Walker
Provided Answers: 6
- Join Date
- Nov 2004
- on the wrong server
Create a new table logged in as the dbo. Specifically create the table specifying the schema. CREATE TABLE dbo.MyTable.... Copy the old table into the new one. Rename as needed.If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry. Earnest Hemingway, A Farewell To Arms.