security

Technical Article

RE: how to encrypt 500 stored procedures?

  • Reply

Declaring a cursor with all the sp names, and then execute sp_helptext for each one. DECLARE @sp AS SYSNAME DECLARE curSP CURSOR LOCAL FOR SELECT name FROM sysobjects WHERE xtype = 'P' ORDER BY NAME OPEN curSP FETCH NEXT FROM curSP INTO @sp WHILE (@@FETCH_STATUS = 0) BEGIN PRINT 'Scripting sp ' + @Sp + […]

2003-12-01

Technical Article

RE: OPENXML

  • Reply

Hi, Try replacing your openxml with the following: DECLARE @idoc int DECLARE @doc varchar(300) SET @doc ='<criticalityquestion> <shortform><![CDATA[Stay again]]> </shortform> <optionlabel><![CDATA[Yes;Maybe;No]]> </optionlabel> <optionvalue><![CDATA[Yes;Maybe;No]]> </optionvalue> </criticalityquestion>' EXEC sp_xml_preparedocument @idoc OUTPUT, @doc SELECT * FROM OPENXML (@idoc, '/criticalityquestion/optionvalue') WITH (optionvalue varchar(20) '.') EXEC sp_xml_removedocument @idoc quote: Hi, I am trying to extract of a particular CDATA tag […]

You rated this post out of 5. Change rating

2003-11-27

1 reads

Technical Article

RE: Recover from corrupt MDF or BAK

  • Reply

Have you tried an "Emergency" mode recovery? http://www.tek-tips.com/gfaqs.cfm/pid/962/fid/4210 Failing that, are you in any of the Microsoft Partner programs (or anything else that gives you an allotment of help calls)? One of my colleagues once brought a very important db back from the dead (this had been corrupted by a RAID failure BTW) with some […]

You rated this post out of 5. Change rating

2003-11-26

1 reads

Technical Article

RE: OT: Sybase Equivelant to MS SQL TOP?

  • Reply

You have to do SET ROWOCOUNT 5 SELECT ...etc Primitive There is a hell of a lot that Sybase doesn't seem to do. DBCC SHOWCONTIG, DBCC DBREINDEX etc. I've been trying to find out a way of defragging indexes and the only way that I have found of doing it is to drop and create […]

2003-11-26

1 reads

Technical Article

RE: Error Message

  • Reply

any time you get EXCEPTION_ACCESS_VIOLATION it is either because the OS is in an unstable condition or a bug on SQL Server. I would suggest a reboot and try to figure out if it is repeatable should it be the case File a bug with MS HTH

2003-11-25

1 reads

Technical Article

RE: HELP!! Installation questions

  • Reply

I frequently do this as my secondary drive is a SAN. Having the Program files on the same drive is really not an issue. The only issues you need to be aware of are: Size and Disk Contention. Size is a no brainer. And disk contention will really be an issue if you do lots […]

You rated this post out of 5. Change rating

2003-11-20

Technical Article

RE: Dynamic SQL Queries

  • Reply

I don't know whether it's a recommended practice or not, but sp_executesql requires a Unicode constant or variable. If a constant is specified, it has to be prefixed with N, hence why the N prefix is used in this example.

You rated this post out of 5. Change rating

2003-11-20

Blogs

Back to Boston for SQL Saturday

By

I’m leaving again tomorrow for a trip. This time I head back to Boston...

T-SQL Tuesday #179: What’s In Your Data Detective Toolkit?

By

Most of us who work with data have, at least a few times, been...

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...

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