Alter table

Technical Article

What is the best way.....?

  • Topic

Hello,my table contains 2 columns .EmpID varchar(10),ReportingToID varchar(10)how to write a query that returns all the employees under a ReportingToID ...?the key here is i want all the employees that are under a ReportingToID tree.i don't know the exact number of levels under a ReportingToID empID      ManagerIDabc      ""def    abcghi   abcjkl    ghiklk   jklmmm jkl Thank YouSai    

You rated this post out of 5. Change rating

2005-01-14

Technical Article

Password Protected Excel File

  • Topic

Hi everybody:I'm receaving password protected Excel files. Those files my app reads and dumps data into SQL tables. How to decrypt (I knew a password) or make Excel file without password. Those files are encrypted because we are getting them from enternet. RGDS Sam  

You rated this post out of 5. Change rating

2004-08-19

1 reads

Technical Article

RE: Latch Error

  • Reply

Well the links were really useful(infact i have already visited few of them earlier).I would really appreciate if somebody who had been exposed to such error in past can just pinpoint to something specific action items.

You rated this post out of 5. Change rating

2004-07-20

Technical Article

RE: Removing the time from a datetime database field

  • Reply

As I alluded to in my original posting...Casting (or Converting) the date as INT or BIGINT may give you the wrong (next day) date because dates with times of 12:00 or later will be rounded up to the next day automatically.  Don't use any form of INT.Further, any type of conversion to DECIMAL will cause […]

You rated this post out of 5. Change rating

2004-02-25

Technical Article

RE: Trans Repl. (Active-Active)

  • Reply

Yes that should work. But you must be sure no transactions where made in the middle because they won't be replicated. Due to a bug in SQL 2000, sometimes you can get an error if you add subscribers with out applying the snapshot. Don't remember it exactly, what it was something like couldn't insert duplicate […]

You rated this post out of 5. Change rating

2003-12-10

1 reads

Technical Article

RE: can u Alter a table (add a field)

  • Reply

quote: I was mistaken. We use this process for two main reasons: 1. If we have to change NULL to NOT NULL 2. For SQL Server 6.5 Boxes. I overlooked the "ADD" part... CREATE TABLE #Test( Id int NULL) INSERT #Test DEFAULT VALUES UPDATE #Test SET Id = 0 WHERE Id IS NULL ALTER TABLE […]

2003-11-18

Technical Article

RE: Multiple Servers and database problem

  • Reply

quote: How big are these databases? Are there many schema changes? If you say small and not many, then check out Steve Jones sjones@sqlservercentral.com http://qa.sqlservercentral.com/columnists/sjones www.dkranch.net There are no schema changes and databases are small ... less than 2 GB each (B) and (C). (A) is just the interfacing database.. couple of MBs. Prateek. [HCL […]

You rated this post out of 5. Change rating

2003-07-11

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