hardware

Technical Article

RE: Field count in a table

  • Reply

To get a list of the columns in a specific table: declare @TableName varchar(150) -- select sc.* from syscolumns sc inner join sysobjects so on so.id = sc.id inner join sysindexes si on si.id = so.id where si.indid < 2 and so.type = 'u' and si.name = @TableName

You rated this post out of 5. Change rating

2003-07-25

Technical Article

RE: SQL query - performance issue

  • Reply

We've seen this happen a couple times on joins to derived tables, but never seen it happen from two permanent tables with an inner join. This code looks like it was transplanted from MS Access. Is that correct? If so, sometimes there can be errors in the transfer from Jet to T-SQL. It may be […]

You rated this post out of 5. Change rating

2003-07-25

1 reads

Technical Article

RE: How to remove leading zeros?

  • Reply

Hi I see three alternatives depending on your requirements on speed/data-integrity. Alternative 1. If you are using MSSQL2K then you could create a user defined function to strip leading zeroes. (See BOL on how to create functions.) SELECT ... FROM TableA a LEFT JOIN TableB b on dbo.fn_stripZeroes(a.column) = b.column This method will suffer in […]

You rated this post out of 5. Change rating

2003-07-25

Technical Article

RE: How to remove leading zeros?

  • Reply

Hi Carknee, quote: The records look like this in one table 00123 and 123 in the other. However, there are a few instance where it is 00123ed of 123ed. Therefore CASTing them to int will not work for all records. is it coincidence in your example that in both case you use 'ed' or is […]

You rated this post out of 5. Change rating

2003-07-25

Technical Article

RE: Poor login speed with 2000+ tables

  • Reply

Well, It looks like it is doing a full count of all permissions on login. If they only have select, it's better. If I through them in datareader or datawriter, thr problem goes away. Also, the owner doesn't have the problem. I'm not very good with Profiler, but the trace I ran looks like it […]

You rated this post out of 5. Change rating

2003-07-25

1 reads

Technical Article

RE: Insert statement latency

  • Reply

This is the stored procedure that inserts the new entry into tableA CREATE PROCEDURE [dbo].[mmap_sp_Insert_OutgoingMessages] @inp_SendDateTime AS DATETIME = NULL, @inp_Sender AS NVARCHAR(30) = NULL, @inp_MessageText AS NTEXT = NULL, @inp_Status AS INTEGER = NULL, @inp_DateTimeSent AS DATETIME = NULL, @out_MessageId AS INTEGER OUTPUT AS INSERT INTO TableA ( SendDateTime, Sender, MessageText, Status, DateTimeSent) VALUES […]

You rated this post out of 5. Change rating

2003-07-23

2 reads

Technical Article

RE: Unneeded Windows Services

  • Reply

You can take a look at Microsoft's site. They have a book on Securing Windows 2000 Server. I'll be talking about the basic services you need in a later security article, but I haven't gotten it written yet in a suitable format. K. Brian Kelley http://www.truthsolutions.com/ Author: Start to Finish Guide to SQL Server Performance […]

You rated this post out of 5. Change rating

2003-07-02

Technical Article

RE: Overall Scorecard ?

  • Reply

I'm view the Question of the Day like an Open Book Test. It only takes a few minutes to find the answer to the questions and I always seem to run across things that are new to me or help clear things up. The Question of the Day is a great idea for your site.

You rated this post out of 5. Change rating

2003-06-26

Blogs

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

Snowflake + Azure blob

By

Let’s go back to data platforms today and I want to talk about a...

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