Viewing 15 posts - 6,946 through 6,960 (of 7,466 total)
take a look at :
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=23&messageid=107508
"C:\Program Files\Microsoft SQL Server\MSSQL\Upgrade\scptxfr.exe" /s yourserver /d yourdatabase /I /F c:\yourfile
rem SCPTXFR /? - Command line help.
rem...
June 29, 2004 at 4:26 am
What's the goal of your function ?
- returning the "highest" membership ?
- returning the "last in sequence" membership ?
(your current function)
- returning the "first in sequence" membership ?
maybe...
June 29, 2004 at 1:49 am
is the xp_cmdshell still open ?
exec xp_cmdshell 'net stop sqlagent' might be your weak spot.
June 29, 2004 at 1:23 am
Like Derrick Leggett mentioned, figure it out !
If your investigation points the symantics are OK, then you might use a case statement .
declare @col1 ...
June 24, 2004 at 12:15 am
- do you have autoupdate-stats on (at db level) ? just run it once in a while.
We just run it once in a while (4 times a year) because autoupdatestats...
June 18, 2004 at 12:26 am
As you did find out, @@identity <> primary-key-info
afaik there is no way to have the "just inserted" primary key info returned, unless you write a query,... This however is...
June 17, 2004 at 12:04 am
I haven't used that combination yet.
We only use linked servers to non-sqlserver for problem solving. Only then the definitions are added and removed asap.
This is because we don't want...
June 16, 2004 at 12:13 am
Don't store concatenated stuff. It's not as adaptable as you might think.
Composite keys, don't have that huge downside.
If you want to have your newly inserted key returned by sqlserver...
June 15, 2004 at 11:54 pm
not through sqlserver itself.
stop sqlserver service .
delete the mdf/ldf file
now someone is in deep sh..
Restore ?
follow the rebuildmaster procedure (see bol or ms-website)
June 15, 2004 at 1:18 pm
is this db2 on os390 or AS400 or UDB on win/unix/..
June 15, 2004 at 1:15 pm
you've already been advised to use sp_attach_db ... (see bol)
Then perform the checkdb
Any backup-files ??? (full / diff / log)
All ddl scripted nicely ?
Review you backup-schema !
June 15, 2004 at 1:12 pm
oh please stay with CODD' s rules !
http://www.sqlservercentral.com/columnists/fkalis/coddsrules.asp
Basics of any RDBMS :
- know your relationships.
- use meaningless keys. It makes schema-knowlage mandatory ! and will avoid symantic errors !
-...
June 15, 2004 at 12:57 am
the rough way :
- Select 'exec sp_refreshview @viewname = ''' + u.name + '.'+ o.name + ''' ' + char(13) + ' go '
from sysobjects o
inner join sysusers u...
June 15, 2004 at 12:43 am
http://www.sqlservercentral.com/columnists/sjones/performancemonitoringbasiccounters.asp
will put you on track.
- There are # of articles/forumthreads concerning performance monitoring.
this is also very usefull :
http://www.sql-server-performance.com/performance_monitor_tips.asp
June 14, 2004 at 12:22 am
create tabel mytable(
mybunch_of_columns ....
, tsInserted datetime not null default getdate()
, UserInserted varchar(50) not null default suser_sname()
) ...
This makes you don't have to change your insert-script because if the columns are not mentioned...
June 14, 2004 at 12:10 am
Viewing 15 posts - 6,946 through 6,960 (of 7,466 total)