Viewing 15 posts - 346 through 360 (of 548 total)
Ken,
If the purpose of the table is to hold 'precise' job sequences, then the fact that job3 is specified twice in your sample data seems to be incorrect. Thus there is no way...
August 22, 2007 at 9:43 am
What makes you thinks so?
sysusers.createdate is when that record was created (via, say, sp_addlogin, sp_grantdbaccess, etc.)
What will make sysusers.createdate unreliable is when the database came from another server which...
August 22, 2007 at 8:25 am
This query gives you the column names for a given table-name.
select sc.name
from syscolumns sc
join sysobjects so on sc.id=so.id
where so.name='table-name' and so.xtype='U'
order by colid
August 22, 2007 at 8:13 am
If you are using Enterprise Manager to restore, try Query Analyzer instead (or vice versa). The other tool might give you a better message.
Other than that, I can only say that...
August 22, 2007 at 8:07 am
Check out -n switch meaning 'native format' in bcp for doing bulk insert. But I have never head this used for backups.
August 22, 2007 at 7:54 am
You might have a peak at the file by doing in a Command shell:
type name.bak | more
The few SQL Server 2000 backup files i quickly looked at all begin with the word...
August 22, 2007 at 7:47 am
You can always hack just this functionality into sp_password and sp_addlogin - but I wouldn't recommend it as any service pack install would wipe out these changes.
I did a password...
August 22, 2007 at 7:39 am
Get a third opinion by running the plain-vanilla VBA script below:
1. modify the connect string line
2. save it as test.vbs
3. start a Command shell, navigate to the folder and type:...
August 22, 2007 at 6:49 am
This works fine for me.
create table t(
id int identity(1,1),
copy_of_id int)
insert into t values(isnull(scope_identity(),0)+1)
August 22, 2007 at 6:13 am
I think what he wants is
Root Trunk Branch Leaf
Root Trunk Branch Stem
Root Trunk Branch Leaf
Root Trunk Branch Leaf
Root Trunk Branch Leaf
The query I showed does essentially that. If you display...
August 21, 2007 at 4:49 am
There is no generic solution for an arbitrary number of levels. But if you know that there is a reasonable maximum number of levels then it can be handled with...
August 20, 2007 at 7:47 am
Check out OPENROWSET in BOL.
July 26, 2007 at 4:10 am
In my office's desktop - some time ago, I added a red panic button to my keyboard (received as a gift from my secretary). It's one of those things that you...
July 26, 2007 at 4:06 am
What's wrong with
select hostname,loginame
from master.dbo.sysprocesses
where spid=@@spid
I think this returns domain\user values in loginame.
July 24, 2007 at 6:46 am
But to me it looks like you're dealing with a problem that's easier to solve using Excel. I don't see relational database concepts as being very useful here.
July 21, 2007 at 1:01 pm
Viewing 15 posts - 346 through 360 (of 548 total)