security

Technical Article

RE: Check SQL Server Uptime

  • Reply

Before SQL Servers stops completely it will log a message both in to SQL Server Error log and OS Eventlogs, Works the same way when you start the sql server. Check you Errorlog you will see " SQL Server is starting at priority class 'XYZ'( # CPUs detected)" and "SQL Server is terminating due to […]

You rated this post out of 5. Change rating

2003-07-03

1 reads

Technical Article

RE: Killing users before restore

  • Reply

here's a script i've used for quite a while... ------------------------ USE master go ALTER DATABASE yourdatabase SET SINGLE_USER WITH ROLLBACK IMMEDIATE RESTORE DATABASE yourdatabase FROM DISK = 'c:\path\filename' with replace ALTER DATABASE yourdatabase SET MULTI_USER go ------------------------ I generally run it from a batch file with something like: osql -E -d master -i db-restore.sql -o […]

You rated this post out of 5. Change rating

2003-07-03

1 reads

Technical Article

RE: The merge process could not initialize the Pub...

  • Reply

Hi, quote: Hi, it seems that the client does not have the rights to read from the snapshot-folder. During the setup of the publisher you have to choose the initial snapshotfolder (Default setting is something like this \\ServerName\d$\Program Files\MSSQL\DATA\ReplData). SQL-Server always uses this system link to d$ to which a 'normal' user has no rights […]

You rated this post out of 5. Change rating

2003-07-03

1 reads

Technical Article

RE: How to Insert word documents into sql server?

  • Reply

sample code in VB i found somewhere 'write to sql Dim cn As ADODB.Connection Dim rs As ADODB.Recordset Dim mstream As ADODB.Stream Set cn = New ADODB.Connection cn.Open "Provider=SQLOLEDB;data Source=<name of your SQL Server>; Initial Catalog=pubs;User Id=<Your Userid>;Password=<Your Password>" Set rs = New ADODB.Recordset rs.Open "Select * from pub_info", cn, adOpenKeyset, adLockOptimistic Set mstream = […]

You rated this post out of 5. Change rating

2003-07-03

1 reads

Technical Article

RE: Query runs slow as Stored Procedure

  • Reply

Use Query Analyzer to look at the execution plan for the statement when you pass in a variable and when you provide the value direct. If you have multiple indexes on a table, I've found that the optimizer can choose the wrong one when querying using a variable. If that's the case you can use […]

You rated this post out of 5. Change rating

2003-07-02

2 reads

Technical Article

RE: Automatic table replacement

  • Reply

Thanks, thats very helpful. What kind of problems are likely to occur using the linked table system - what are the alternatives? For the second part to my question - would an access user be able to link to the DTS task an activate it?

You rated this post out of 5. Change rating

2003-07-02

Technical Article

RE: dBase import - null dates problem

  • Reply

If your importing you are checking DTSSource ;)] Why not use ActiveX for the column in question, ie Function Main() If DTSSource("x") = True Then DTSDestination("x") = null eElseIf DTSSource("x") = False Then DTSDestination("x") = null Else DTSDestination("x") = DTSSource("x") End If Main = DTSTransformStat_OK End Function

You rated this post out of 5. Change rating

2003-07-02

Blogs

The Future of the Social Web Is in Good Hands

By

The Social Web Foundation is aiming to grow the fediverse and make the social...

Monday Monitor Tip: Compliance Checking for Old Versions

By

A customer recently wanted to know if any of their instances were too old...

Making Legend Order Match Segment Order in a Power BI Stacked Column Chart

By

A reader of one of my previous posts pointed out that the legend order...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers