security

Technical Article

RE: how to return one result set from multiple queries (ie. no results from query1, go to query2)

  • Reply

You can write like SELECT ResultID, Link, Description FROM results WHERE Isnull(Op1,@op1) = @Op1 AND Isnull(Op2,@op2) = @Op2 AND Isnull(Op3,@op3) = @Op3 AND Isnull(Op4,@op4) = @Op4 AND Isnull(Op5,@op5) = @Op5 did i understand your problem correctly?

You rated this post out of 5. Change rating

2005-05-19

Technical Article

Problem in transform data task whlie generating text files.

  • Topic

Hi all,I am generating text files from database tables.When number of columns are less then 15 i am able to define cloumns in destination text file but when number of columns in table is more then 15 task is not able to generate columns in destination text file.Thanks In Advance.

You rated this post out of 5. Change rating

2005-05-19

1 reads

Technical Article

RE: Moving Large Database

  • Reply

Hi,This is just a login idea. If I move SQL logins to a new server then I use 3 parameters to sp_addlogin: login name, password and SID that I get from restored database's sysusers that contains the source server's SIDs. This way logins are created with SIDs that are already matched.Yelena 

You rated this post out of 5. Change rating

2005-05-19

Technical Article

RE: week function

  • Reply

The rules for week numbers are different between different countries. I am not sure which rules are specific for you, but take a look at my article On the trail of the ISO week for an example of getting ISO week numbers.

2005-05-18

Technical Article

RE: tables

  • Reply

But SET PARSEONLY requires that you execute a statement (even though it will only be parsed and not executed), and it does not return any resultset regarding which tables are used. Afaik and the way I understand your question, you need to parse the strings yourself.

You rated this post out of 5. Change rating

2005-05-18

Technical Article

RE: QueryTool complaint

  • Reply

I did mention that.  We could place the views on our network.  Another solution is to link our SQL tables to an Access application and let them play in that sandbox.   The over-riding problem we have is an end user who wants everything for her group...She was recently promoted into IT and we are just […]

2005-05-16

Technical Article

RE: SQL CHAR field question

  • Reply

set nocount on create table #temp (product_id int not null, prod_desc char(1) null) insert into #temp select 1, 'A' insert into #temp select 1, 'B' insert into #temp select 1, 'C' insert into #temp select 2, 'D' insert into #temp select 2, 'E' insert into #temp select 2, 'F' DECLARE @Output VARCHAR(8000) SET @Output = […]

You rated this post out of 5. Change rating

2005-05-13

Technical Article

RE: Generate SQL Script

  • Reply

I think you may want to be more specific in your question.  Query Analyzer is basically a notepad interface in which you make your own code to run.  There are ways to write such that it will generate output that is a script; for instance you can run code to query one table which will […]

You rated this post out of 5. Change rating

2005-05-13

Blogs

Enabling an Index: #SQLNewBlogger

By

I don’t do a lot of work with disabled index, but I learned how...

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

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