PowerShell

Technical Article

RE: How Can I Generate a List of the Columns that Comprise the Primary Key?

  • Reply

 SELECT          column_name name,                 constraint_name name  FROM      '+@destination_DatabaseName+'.information_schema.key_column_usage  WHERE   constraint_catalog='''+@destination_DatabaseName +'''                 and table_name = '''+@destination_TableName+'''  ORDER BY                 constraint_name, ordinal_position

You rated this post out of 5. Change rating

2004-02-06

1 reads

Technical Article

RE: SQL and table layout

  • Reply

 Why can't my query update a linked table? I have a query in MS Access that has a linked (ODBC) SQL Server table as it's source. To get the results I need the query uses three separate fields for criteria. The query returns the correct data set, however when any data is changed / updated […]

You rated this post out of 5. Change rating

2004-02-06

2 reads

Technical Article

RE: Stored procedures with .mdb type app

  • Reply

Thought others might benefit from Mary Chipman's comments (from newsgroup):An mdb is a better choice since you also have the flexibility of storing static data locally in Jet tables, allowing you to decrease round trips across the network to fetch data that rarely changes. You can't update the results of a pass-through query, and that […]

2004-02-04

1 reads

Technical Article

RE: SQL Injection!

  • Reply

Chris,Excellent article!!!  After reading your article, I checked w/ our Sr. System Developer to verify if we are using these techniques.  We are looking in depth to other exploitations of SQL injections with our app.Thanks,Dave S.

You rated this post out of 5. Change rating

2004-02-03

Technical Article

RE: Good Argument for IT Director - Your thoughts...

  • Reply

I'd have to agree that not having anyone administer the SQL Server is a recipe for disaster. Despite it being easy to do, or relatively easy, you still need a DBA to perform work, watch the server and ensure that it is running well. This can be a sysadmin, a full time DBA, or a […]

You rated this post out of 5. Change rating

2004-02-03

Technical Article

RE: "Disappearing" Table. Why?

  • Reply

I posted a reply last week, am sure I saw it here for a while but now gone.  From quick google search I believe this behavior is MDAC dependent, so only safe way to proceed would probably be something like this "if @@transcount > 0 commit" whenever you make modifications w/in OpenRowSet.  It bothers me […]

You rated this post out of 5. Change rating

2004-02-02

2 reads

Technical Article

RE: Calculate Last and First Day of the Month

  • Reply

Ain't date handling marvellous?  All sorts of ways of "skinning the cat".  My approach to getting the first day of the month and first of the next is as follows ... (I always use alpha for the month ... saves confusion).declare @today datetime select @today=getdate()select  '01 '+substring(convert(char(11),@today,106),4,11),   '01 '+substring(convert(char(11),dateadd(month,1,@today),106),4,11)01 Feb 2004 01 Mar 2004

You rated this post out of 5. Change rating

2004-02-02

Technical Article

RE: ALTER TABLE problem!

  • Reply

Saving the scripts and applying it to your databases like Jonathan suggested, sounds pretty obvious to me.If you have several databases with the same structure, I would create my own rollout and maintainance routines. In the end you'll need them away.Another question:PRIMARY_KEY   varchar  (512) ?What are you storing there?

You rated this post out of 5. Change rating

2004-02-02

Blogs

SQL Saturday Boston 2024 Slides

By

Thanks to everyone that came to my talks. Slides are below. Best Practices for...

Small Data SF 2024

By

I can’t remember how I heard about Small Data SF 2024, but it caught...

A New Word: Moledro

By

moledro – n. a feeling of resonant connection with an author or artist you’ll...

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