charindex

Technical Article

RE: Query to Post Results to View

  • Reply

You'd need a union for each column. ie:CREATE VIEW [dbo].[NiceChildren] As, SELECT [ID], Child1 FROM [dbo].[Children] UNION ALL SELECT [ID], Child2 FROM [dbo].[Children] UNION ALL SELECT [ID], Child3 FROM [dbo].[Children] UNION ALL SELECT [ID], Child4 FROM [dbo].[Children]

2004-11-15

Technical Article

RE: Bckup, Append or overwrite?

  • Reply

1.  You could give our product, MiniSQLBackup, a try.  It can generate smaller backups for you.2.  If you set to overwrite, that means you will only have the latest backup.  If you consistently copy this backup file to another location/server and tag them accordingly, it should be fine.3.  tempdb grows usually because of temporary workspace needed for sorts […]

You rated this post out of 5. Change rating

2004-09-22

Technical Article

RE: Problem with Query

  • Reply

I changed your query a little. select t.name as tablename , c.name as columnname , isnull(p.name,'''') as ConstraintName, case p.xtype When 'PK' Then 'Primary Key' When 'C' Then 'Check' When 'UQ' Then 'Unique' When 'F' Then 'Foreign Key' When 'TR' Then 'Trigger' When 'D' Then 'Default' Else '' End As ConstraintType from sysobjects t join […]

You rated this post out of 5. Change rating

2003-08-21

Technical Article

RE: How to drop IDENTITY

  • Reply

Well, I could just add another column to that table , copy data from the IDENTITY column into it, drop the DIENTITY column and recreate it, then copy data back and drop the extra column. But to do that I would need to drop all FK as well. It gets too complicated. Thanks anyway.

You rated this post out of 5. Change rating

2003-07-02

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