databases

Technical Article

RE: Does Reorg unload/reload data?

  • Reply

Depends on what kind of indexes table has. If there is a cluster index for the table, dbcc dbreindex will reorganize the data according the clustered index and fill factor. If there is not cluster index, it will just rebuild the indexes themself. You may look into dbcc indexdefrag in BOL too. Edited by - […]

You rated this post out of 5. Change rating

2003-06-26

1 reads

Technical Article

RE: Alerts

  • Reply

You can have the job result to log in to Windows Event Log, and then write a program to notify you. There are several products outside to monitor things like this. For example NetIQ, Patrol. If your company can’t afford the cost, I the best way is to Configure a SQL Mail and then Write […]

You rated this post out of 5. Change rating

2003-06-25

Technical Article

RE: How to print uniqueidentifier or binary data type?

  • Reply

The following works for me: select 'job_ID: ' + cast(job_ID as varchar(100)) from sysjobs Also the following works: declare @job_id uniqueidentifier select top 1 @job_id = job_id from sysjobs print 'job_ID: ' + cast(@job_ID as varchar(100)) Is it possible your variable @job_id is NULL? ie. you haven't fetched a value into it?

You rated this post out of 5. Change rating

2003-06-24

2 reads

Technical Article

RE: eliminating duplicates from stored procedure joins

  • Reply

Yes I also noticed what stax68 found and the outer joins could be your problem. However if you have true duplicates in both Case30 and CASEOLDR then this should do it. SELECT c.Case30.Case_no#, c.Last_name, c.[First Name], c.Determination, c.Sender, c.[Case Type], c.Date, c.[Qwik Due], c.[Qwik sent date], c.[Final due], c.[Final sent date], c.[on hold code], f.reportid, […]

2003-06-23

Technical Article

RE: Lost the MDF, have the LDF

  • Reply

Actually, I was assured by the NetAdmin that my server was being backed up (the partitions that hold my MDF's and LDF's) as part of the backup sets with the rest of the network. The lesson I learned is that I should have been managing my own backups, not relying on someone else to do […]

You rated this post out of 5. Change rating

2003-06-22

Technical Article

RE: Special characters

  • Reply

quote: Ok, maybe I missed something all this time but I have never had a special character bother other than ' as long as wrapped in single quotes 'nnnnnn'. So what is everyone running into that I have yet to hit? there are some more characters to watch. Look at this one: http://www.nextgenss.com/papers/advanced_sql_injection.pdf I've just […]

You rated this post out of 5. Change rating

2003-06-17

Technical Article

RE: Stored Procedures

  • Reply

Hello Cheers and thanks for your attention Now If I execute by Query Analyzer the statement: SELECT * FROM [dbname].dbo.table_name_2 work, It's OK! instead SELECT * FROM [serverName].[dbname].dbo.table_name_2 not work! Bye bye Flavio

You rated this post out of 5. Change rating

2003-06-10

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