Viewing 15 posts - 2,476 through 2,490 (of 2,647 total)
george sibbald (10/4/2011)
you don't need to create a database first before restoring.
Ooh! Good point... However, I'm interested to see if there is a difference in permissions granted to this user...
October 4, 2011 at 9:18 am
You will be able to script the backup just as you script the attach. Simply create the database first with no tables, then restore the backup with a script:
USE master;
GO
CREATE...
October 4, 2011 at 9:09 am
ChrisM@Work (10/4/2011)
jared-709193 (10/3/2011)
ChrisM@home (10/3/2011)
komal145 (10/3/2011)
I have table T11234
And table T2
3456
And my result set should be
123456
Is there any way other than union?
Yes, several, but union (without ALL) would be best....
October 4, 2011 at 8:03 am
ChrisM@home (10/3/2011)
jared-709193 (10/3/2011)
If this query:
SELECT CHARINDEX('</t2>', data)
FROM TableName
WHERE CHARINDEX('</t2>', data) < 4
returns ANY data, (which it has already stated it does) the substring will fail every time on the...
October 4, 2011 at 7:42 am
george sibbald (10/3/2011)
the detached files must have come from somewhere, no chance they cannot be replaced by a database backup?
This is a good idea. Can the user simply create...
October 3, 2011 at 6:16 pm
ChrisM@home (10/3/2011)
komal145 (10/3/2011)
I have table T11234
And table T2
3456
And my result set should be
123456
Is there any way other than union?
Yes, several, but union (without ALL) would be best. Why do...
October 3, 2011 at 6:12 pm
PEOPLE!
If this query:
SELECT CHARINDEX('</t2>', data)
FROM TableName
WHERE CHARINDEX('</t2>', data) < 4
returns ANY data, (which it has already stated it does) the substring will fail every time on the data set...
October 3, 2011 at 6:05 pm
Just curious... Why aren't the DBAs doing the upgrades and installs? Unless you are not talking about SQL Server itself... I guess I am just confused. You have...
October 3, 2011 at 3:35 pm
I think you are witnessing the reason that companies hire DBA's 🙂 As a DBA I routinely create databases and add the proper permissions. The reason we do not...
October 3, 2011 at 2:53 pm
Lowell (10/3/2011)
October 3, 2011 at 2:45 pm
EDIT: Removed previous quote as I quoted the wrong one...
DBAgal (10/3/2011)
jared-709193 (10/3/2011)
October 3, 2011 at 2:38 pm
Steve Jones - SSC Editor (10/3/2011)
Paul,
you are confusing the server level permissions with database permissions. Being able to create a database does not imply...
October 3, 2011 at 2:34 pm
Hmm... There has to be another permission for this user that is not granted. Did you revoke any permissions?
Thanks,
Jared
October 3, 2011 at 1:51 pm
If you don't mind using a temporary table, which can sometimes work very well and improve performance, you can do this:
SELECT c1, c2, c3, ..., cn
FROM T1
INTO #TEMP
GO
INSERT INTO #TEMP
SELECT...
October 3, 2011 at 1:47 pm
October 3, 2011 at 1:38 pm
Viewing 15 posts - 2,476 through 2,490 (of 2,647 total)