events

Technical Article

RE: Which SQL Server License to buy ?

  • Reply

Since you mention ASP pages, I assume this is a web application.  If your users are authenticated (NT Domain or AD) users, you can use the first or second option, as long as you purchase a CAL (client access license) for each individual user that will be using the system.  If your users are not authenticated, you […]

You rated this post out of 5. Change rating

2004-01-27

Technical Article

RE: Take too long to shrink a huge database, HELP!!!!

  • Reply

in addition to the other replies:- If you know you'll need 13,5 Gb why do you try to shrink to 4 Gb ?   This way sqlserver will have to allocate extra extentions (cfr autogrow).     use [MSQLDB] DBCC SHRINKFILE (N'MSQLDB_DATA', 14000)- Is your database in use (locking / blocking) ?  

You rated this post out of 5. Change rating

2004-01-26

2 reads

Technical Article

RE: GETDATE -> only DATE needed

  • Reply

Also, don't use a UDF to convert dates to YYYYMMDD, just CONVERT(char(8),YourDate,112).  The native function (and implicit conversion if the result is going into an int column) will be faster than any UDF, and you'll appreciate this speed if you're actually updating an entire table.True. Didn't see the 112 in the list..... 

You rated this post out of 5. Change rating

2004-01-23

Technical Article

RE: database owners, users, roles, security

  • Reply

Actually, SQL server will search for <owner>.<object> where <owner> is the current user. If it doesn't find an object matching, it drops back to dbo.<object>. Unless, of course, it's a stored procedure that begins with sp_ in which case it searches for it as master.dbo.<sp_ name> first. Prior to Yukon schema and user aren't separated […]

You rated this post out of 5. Change rating

2004-01-23

1 reads

Technical Article

RE: Help me connect to SQL Server with ODBC

  • Reply

Chris, Have you configured the security for the IUSER account???  It looks like a permissions thing currently.  I assume you are using IIS and I think you wil need to grant permissions to that user for your app to work. I don't work with ASP that is just what it looks like from the blurb you […]

You rated this post out of 5. Change rating

2004-01-22

Technical Article

RE: Replace NULL value with 0 in query

  • Reply

Might be worth considering placing a DEFAULT value of 0 on your column, otherwise you'll face the problem you know have.Another approach might be to use COALESCE() like thisSET NOCOUNT ON CREATE TABLE AveragingMultipleColumns (year0 DECIMAL(8,5), year1 DECIMAL(8,5), year2 DECIMAL(8,5))INSERT INTO AveragingMultipleColumns (year0, year1,year2) VALUES(1,2,3) INSERT INTO AveragingMultipleColumns (year0, year1,year2) VALUES(1,2,NULL) INSERT INTO AveragingMultipleColumns (year0, […]

You rated this post out of 5. Change rating

2004-01-22

1 reads

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