Viewing 15 posts - 21,571 through 21,585 (of 26,490 total)
Single Proc? Dual Proc? Quad Proc? Single Core? HyperThreaded? Dual Core? Quad Core?
Disk subsystems? Are they then same/similar?
April 9, 2009 at 12:13 pm
Any help on that thread would be welcome. Based on further information from the OP, I'm thinking something written using SMO may be a better option than a stored...
April 9, 2009 at 11:54 am
This may take more work. Even under a privledged account, I get an error with the CREATE DATABASE part of the stored proc.
Don't give up hope yet. If...
April 9, 2009 at 11:53 am
Mike Levan (4/9/2009)
April 9, 2009 at 11:38 am
Lowell (4/9/2009)
don't you have to add a USE DATABASENAME command before you add the user, otherwise it would just re-add the user to the existing connected database?
Probably. Work got...
April 9, 2009 at 11:30 am
Steve Jones - Editor (4/9/2009)
GilaMonster (4/9/2009)
There are times I wish I could reach through the computer screen and beat some sense into people...
And having seen the Gilamonster in action, I'm...
April 9, 2009 at 11:26 am
GilaMonster (4/9/2009)
Lynn Pettis (4/9/2009)
And then there are those who really should not be giving advice. The code provided here wouldn't even pass a check in SSMS.Are we really surprised?
Honestly?...
April 9, 2009 at 11:18 am
And yes, I just posted a warning regarding my code and SQL Injection.
April 9, 2009 at 11:15 am
********* WARNING ***********
A quick aside regarding my code. It needs more work. Currently it is wide open to SQL Injection. This would be a good opportunity for...
April 9, 2009 at 11:14 am
I think mzak deserves a Gold Star and a big round of applause!
April 9, 2009 at 11:11 am
And then there are those who really should not be giving advice. The code provided here wouldn't even pass a check in SSMS.
April 9, 2009 at 11:07 am
The only thing I haven't done yet is actually test the procedure, but the following code will actually create the procedure.
CREATE PROCEDURE dbo.CreateNewClientDatabase (
@DBName varchar (128),
...
April 9, 2009 at 11:04 am
Mike Levan (4/9/2009)
CREATE PROCEDURE CreateNewClientDatabase
@DBName varchar (128),
@Username varchar (30)
WITH EXECUTE AS 'dbo'
AS
if not exists(select dbid from master.sysdatabases where name = @DBName)
CREATE DATABASE @DBName
print 'Database @DBName Created'
else
raiserror("Database already...
April 9, 2009 at 10:54 am
Are you using the Native SQL Server Backup or a third-party tool?
April 9, 2009 at 10:39 am
Viewing 15 posts - 21,571 through 21,585 (of 26,490 total)