security

SQLServerCentral Article

Dynamic SQL vs. Static SQL Part 1 - Security

  • Article

Sooner or later everyone who works with SQL Server hears that it is better to avoid dynamic SQL at all cost. Dynamic SQL will force you to give out more permissions than static SQL. This article by Robert Marda shows you some of the security issues with dynamic SQL.

1 (2)

You rated this post out of 5. Change rating

2002-02-27

12,264 reads

Technical Article

create or replace

  • Topic

Is it possible to create a 'command' that will replace if exists (select * from sysobjects where id = object_id('usp_myproc')) begin drop procedure usp_myproc end create procedure usp_myproc with create or replace usp_myproc ... ? in which case I would like to know how? Best regards Henrik Staun Poulsen Stovi Software Denmark

You rated this post out of 5. Change rating

2002-02-26

4 reads

Technical Article

DTS: UNICODE to Ascii conversion?

  • Topic

I wrote a DTS script that outputs a text file for a DOS program. Turns out, the DOS program couldn't read the file because it uses UNICODE character formatting! (Specs of DTS Box: Win 2K, Sql 7). Can DTS convert a UNICODE file to Ascii format? TIA, Bill

2002-02-21

16 reads

Technical Article

Coding for "Not Distinct"

  • Topic

I would like to run a simple query to identify duplicate records in a table, in other words, something like a NOT DISTINCT keyword would be perfect. Any ideas ?

2002-02-21

3 reads

Technical Article

Does anybody know ?

  • Topic

I'm using stored procedures xp_startmail, xp_sendmail and xp_stopmail to send emails from SQL server to different email addresses. Most of the time, every thing is Ok and emails are sent. But sometimes, i get following error .... ODBC: Msg 0, Level 19, State 1 SqlDumpExceptionHandler: Process 55 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is […]

2002-02-21

2 reads

Technical Article

First Day of Week

  • Topic

Does any one know, how can I get the first day of some week. For instance, I want to know the first day of week "20" in year 2001. Any help I appreciate. WolfJr

2002-02-21

Technical Article

A special querry

  • Topic

How i can get the number of time that a specific string appear in each register of my DB using T-SQL. These strings are in a field separated between then by white spaces and comma, ex.:" 001, 002, 003, 001, 007, 001, 002, etc"

2002-02-21

Technical Article

Maintenance plans

  • Topic

Bit frightening how many people are using maintenance plans. Guess that's why there are so many posts on various forums about them not working. And why there are so many posts about people not understanding basic maintenance on sql server.

You rated this post out of 5. Change rating

2002-02-20

1 reads

Blogs

Simple Talks Episode 7

By

The season 1, seventh episode of Simple Talks is out. Check it out, with...

A New Word: the McFly effect

By

the McFly Effect – n. the phenomenon of observing your parents interact with people...

Key mappings in Visual Studio Code

By

At a recent conference I was asked how I executed code during my presentation....

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