Viewing 15 posts - 3,061 through 3,075 (of 5,356 total)
Seems that this http://www.sqlservercentral.com/forum/topic.asp?TOPIC_ID=19410&FORUM_ID=23&CAT_ID=2&Topic_Title=Gurus%2C+please+help&Forum_Title=General
is the same question, right?
If so, we should continue there. ![]()
Frank
December 19, 2003 at 2:32 am
quote:
Well, $125 isn't that much.Just thinking, we have some budget open for education. Now I only need to build the bridge...
December 19, 2003 at 2:21 am
December 19, 2003 at 2:15 am
Some people might argue that using the identity property is bad, but I like it.
I think it makes somehow easier.
Btw,
CREATE TABLE [dbo].[TEST] (
[ID1] [int] IDENTITY...
December 19, 2003 at 2:01 am
Both utilities are explained in Books Online.
I would first take a look at the CREATE TABLE statements in ths *.sql file.
There are some (minor) differences between MySQL and SQL...
December 19, 2003 at 1:01 am
Just for fun I ran
set nocount on
CREATE TABLE [dbo].[RobTable] (
[RecordID] [int] IDENTITY (1, 1) NOT NULL ,
[RobNote] [varchar] (12) NULL,
[DateTimeInserted] datetime DEFAULT getdate()
) ON [PRIMARY]
go
insert RobTable...
December 19, 2003 at 12:46 am
quote:
The USE instruction has to be in the same statement as the CREATE TABLE.
set @stmt =...
December 19, 2003 at 12:34 am
![]()
![]()
![]()
![]()
![]()
![]()
Sorry!!!
Brain dead at 10:30 PM. Need to go home to get some...
December 18, 2003 at 2:35 pm
Actually it compiles, but it doesn't change to the new database. Please don't use it right now!
Frank
December 18, 2003 at 2:24 pm
Does this help?
CREATE PROCEDURE usp_blahbla @dbname nvarchar(10)
as
declare @stmt nvarchar(1000)
set @stmt = 'CREATE DATABASE ' + @dbname
EXEC sp_executesql @stmt
set @stmt = 'USE '+ @dbname
EXEC sp_executesql @stmt
set @stmt...
December 18, 2003 at 2:11 pm
You should be able to place the whole stuff into a sproc with the dbname as input parameter.
Forgot that to mention in the previous post.
Frank
December 18, 2003 at 1:47 pm
Ah, those powerusers with their whole bunch of specialities...
Well then, I don't know if you can reference a db with osql that doesn't already exist.
I...
December 18, 2003 at 1:44 pm
Well, $125 isn't that much.
Just thinking, we have some budget open for education. Now I only need to build the bridge how this might improve my knowledge in my...
December 18, 2003 at 1:31 pm
Are you creating every month the same db with another name?
If so, any reason for this?
Frank
December 18, 2003 at 12:45 pm
You should go mainstream, and use IE. FWIW.
It's the same with Opera. I guess you can't change this.
Frank
December 18, 2003 at 12:41 pm
Viewing 15 posts - 3,061 through 3,075 (of 5,356 total)