Friday, March 30, 2012
Resource Limits ?
Is there any way to implment this with any MS SQL Server version from 200-2005/SP2?
Before anyone answers, please do not suggest set rowcount etc.
thanks.I don't see this kind of feature available yet in any of the versions of SQL Server, however workaround are the only possible methods like the one you have suggested.sql
Monday, March 26, 2012
reset toolbox doesn't delete my components
Hi,
I am in the process of developing a custom component. During that time I went through many versions of my custom component, including various DLL names and signatures, different code etc.
The problem is that now I have old versions of my custom components stuck in the default settings of the toolbox. When I reset the toolbox, even if I manually deleted the old items, it appears again.
I tried to delete all the DLLs I previously copied to the SQL Server directories, and also uninstalled all the DLLs from GAC.
The result was that the new components didn't appear, and I don't have the option to choose them in the "choose items" menu, but they still appear on the toolbox.
It is not something I can't live with, but it's really annoying seeing old and irrelevant versions right in your face...
Please help :-)
I believe the toolbox enumeration is driven off the %ProgramFiles%\DTS\<ComponentType> folder, so if you delete the old versions from there and reset they should be removed from the toolbox.|||I don't have that folder... I tried deleting everything from the relevant sql server folder, but it didn't help.|||Sorry, what I meant was %ProgramFiles%\Microsoft SQL Server\90\DTS\<Component>. So to remove any Data Flow components, clean up C:\Program Files\Microsoft SQL Server\90\DTS\PipelineComponents. For Tasks, clean up C:\Program Files\Microsoft SQL Server\90\DTS\Tasks etc.|||That's what I did to begin with... it still didn't help.reset table identity in TSQL
this works fine, but there are occasions where I need to update a record and
set the primary key to a number that is not in the identity sequence. For
instance the identity value is 160001 and I need to manually update a
record's primary key to 5000.
So far the only way I know how to do this is to go into Enterprise manager
and select identity to NO on the identity field to save the table, run my
update queries, go back into Enterprise manager and set identity back to YES
and resave. I am sure there must be a way I can put this process into a
script. Is there are way to do this in TSQL without having to use Enterprise
Manager?
Example:
Identity primary key customer_id 160001 needs to be updated to 5000 and
afterwards restore identity back to 160001
thanks,
FrankLookup DBCC CHECKIDENT in SQL Server Books Online.
--
- Anith
( Please reply to newsgroups only )|||look up SET IDENTITY_INSERT in BOL
HTH
--
Ray Higdon MCSE, MCDBA, CCNA
--
"Frank" <frankenberryz@.yahoo.com> wrote in message
news:eY0Bb.6$1i.21421@.news.uswest.net...
> I have a table set up with a primary key identity column. Most of the time
> this works fine, but there are occasions where I need to update a record
and
> set the primary key to a number that is not in the identity sequence. For
> instance the identity value is 160001 and I need to manually update a
> record's primary key to 5000.
> So far the only way I know how to do this is to go into Enterprise manager
> and select identity to NO on the identity field to save the table, run my
> update queries, go back into Enterprise manager and set identity back to
YES
> and resave. I am sure there must be a way I can put this process into a
> script. Is there are way to do this in TSQL without having to use
Enterprise
> Manager?
> Example:
> Identity primary key customer_id 160001 needs to be updated to 5000 and
> afterwards restore identity back to 160001
> thanks,
> Frank
>|||SET IDENTITY_INSERT tableName ON
GO
UPDATE tableName SET customer_id = 5000 WHERE customer_id = 160001
GO
"Frank" <frankenberryz@.yahoo.com> wrote in message
news:eY0Bb.6$1i.21421@.news.uswest.net...
> I have a table set up with a primary key identity column. Most of the time
> this works fine, but there are occasions where I need to update a record
and
> set the primary key to a number that is not in the identity sequence. For
> instance the identity value is 160001 and I need to manually update a
> record's primary key to 5000.
> So far the only way I know how to do this is to go into Enterprise manager
> and select identity to NO on the identity field to save the table, run my
> update queries, go back into Enterprise manager and set identity back to
YES
> and resave. I am sure there must be a way I can put this process into a
> script. Is there are way to do this in TSQL without having to use
Enterprise
> Manager?
> Example:
> Identity primary key customer_id 160001 needs to be updated to 5000 and
> afterwards restore identity back to 160001
> thanks,
> Frank
>|||> I have a table set up with a primary key identity column. Most of the time
> this works fine, but there are occasions where I need to update a record
and
> set the primary key to a number that is not in the identity sequence. For
> instance the identity value is 160001 and I need to manually update a
> record's primary key to 5000.
Why? Should you really be using a surrogate if people care what the actual
value is?
In any case, see the following topics in Books Online:
SET IDENTITY_INSERT
DBCC CHECKIDENT
> So far the only way I know how to do this is to go into Enterprise manager
> and select identity to NO on the identity field to save the table, run my
> update queries, go back into Enterprise manager and set identity back to
YES
> and resave.
Please stop using Enterprise Manager to manipulate data. You can do
irrepairable damage, or a whole lot of unnecessary locking, e.g. when the
tool goes behind the scenes and makes a complete copy of a 4 billion row
table without warning you first (many of EM's shortcuts are accomplished
exactly this way).
> Identity primary key customer_id 160001 needs to be updated to 5000 and
> afterwards restore identity back to 160001
Here's what my approach would be (though I still fail to see the purpose of
assigning some known, meaningful value to a surrogate).
CREATE TABLE blat
(
blatID INT IDENTITY(160000, 1),
cust VARCHAR(32)
)
GO
SET NOCOUNT ON
INSERT blat(cust) VALUES('lobster')
INSERT blat(cust) VALUES('shrimp')
GO
DBCC CHECKIDENT('blat', RESEED, 4999)
GO
INSERT blat SELECT cust FROM blat WHERE blatID = 160001
GO
DELETE blat WHERE blatID = 160001
GO
DBCC CHECKIDENT('blat', 'RESEED', 160000)
GO
INSERT blat(cust) VALUES('squid')
GO
SELECT * FROM blat
GO
DROP TABLE blat
GO
--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/|||Hi,
Please try this
declare @.i int
declare @.c1 nvarchar(100)
set @.i = 5000
set @.c1 = 'DBCC CHECKIDENT (Tablename, RESEED,'+
ltrim(rtrim(convert(char,@.i)))+')'
exec sp_executesql @.c1
After updating
declare @.i int
declare @.c1 nvarchar(100)
set @.i = 160001
set @.c1 = 'DBCC CHECKIDENT (Tablename, RESEED,'+
ltrim(rtrim(convert(char,@.i)))+')'
exec sp_executesql @.c1
Thanks
Hari
MCDBA
"Frank" <frankenberryz@.yahoo.com> wrote in message
news:eY0Bb.6$1i.21421@.news.uswest.net...
> I have a table set up with a primary key identity column. Most of the time
> this works fine, but there are occasions where I need to update a record
and
> set the primary key to a number that is not in the identity sequence. For
> instance the identity value is 160001 and I need to manually update a
> record's primary key to 5000.
> So far the only way I know how to do this is to go into Enterprise manager
> and select identity to NO on the identity field to save the table, run my
> update queries, go back into Enterprise manager and set identity back to
YES
> and resave. I am sure there must be a way I can put this process into a
> script. Is there are way to do this in TSQL without having to use
Enterprise
> Manager?
> Example:
> Identity primary key customer_id 160001 needs to be updated to 5000 and
> afterwards restore identity back to 160001
> thanks,
> Frank
>|||> SET IDENTITY_INSERT tableName ON
> GO
> UPDATE tableName SET customer_id = 5000 WHERE customer_id = 160001
> GO
This was my initial angle, but regardless of IDENTITY_INSERT setting, I get:
Server: Msg 8102, Level 16, State 1, Line 1
Cannot update identity column 'customer_id'.
--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/|||Can I put this into a transaction?
begin transaction
set identity_insert tblName ON
UPDATE tableName SET customer_id = 5000 WHERE customer_id = 160001
commit transaction
Would that work?
thanks,
Frank
"Raymond D'Anjou (raydan)" <raydan@.canatrade.nospamcom> wrote in message
news:ub8z#LavDHA.560@.TK2MSFTNGP11.phx.gbl...
> SET IDENTITY_INSERT tableName ON
> GO
> UPDATE tableName SET customer_id = 5000 WHERE customer_id = 160001
> GO
> "Frank" <frankenberryz@.yahoo.com> wrote in message
> news:eY0Bb.6$1i.21421@.news.uswest.net...
> > I have a table set up with a primary key identity column. Most of the
time
> > this works fine, but there are occasions where I need to update a record
> and
> > set the primary key to a number that is not in the identity sequence.
For
> > instance the identity value is 160001 and I need to manually update a
> > record's primary key to 5000.
> >
> > So far the only way I know how to do this is to go into Enterprise
manager
> > and select identity to NO on the identity field to save the table, run
my
> > update queries, go back into Enterprise manager and set identity back to
> YES
> > and resave. I am sure there must be a way I can put this process into a
> > script. Is there are way to do this in TSQL without having to use
> Enterprise
> > Manager?
> >
> > Example:
> > Identity primary key customer_id 160001 needs to be updated to 5000 and
> > afterwards restore identity back to 160001
> >
> > thanks,
> > Frank
> >
> >
>|||I was thinking that maybe IDENTITY_INSERT doesn't work for updates after I
posted the message.
BOL only mentions that it works for updates.
Sorry, should have put "Untested" before my solution.
"Aaron Bertrand - MVP" <aaron@.TRASHaspfaq.com> wrote in message
news:eaiPsNavDHA.1872@.TK2MSFTNGP09.phx.gbl...
> > SET IDENTITY_INSERT tableName ON
> > GO
> >
> > UPDATE tableName SET customer_id = 5000 WHERE customer_id = 160001
> > GO
> This was my initial angle, but regardless of IDENTITY_INSERT setting, I
get:
> Server: Msg 8102, Level 16, State 1, Line 1
> Cannot update identity column 'customer_id'.
> --
> Aaron Bertrand
> SQL Server MVP
> http://www.aspfaq.com/
>|||I get the error:
Server: Msg 8102, Level 16, State 1, Line 1
Cannot update identity column 'customer_id'
"Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
news:#v45XNavDHA.560@.TK2MSFTNGP11.phx.gbl...
> Hi,
> Please try this
> declare @.i int
> declare @.c1 nvarchar(100)
> set @.i = 5000
> set @.c1 = 'DBCC CHECKIDENT (Tablename, RESEED,'+
> ltrim(rtrim(convert(char,@.i)))+')'
> exec sp_executesql @.c1
> After updating
> declare @.i int
> declare @.c1 nvarchar(100)
> set @.i = 160001
> set @.c1 = 'DBCC CHECKIDENT (Tablename, RESEED,'+
> ltrim(rtrim(convert(char,@.i)))+')'
> exec sp_executesql @.c1
>
>
> Thanks
> Hari
> MCDBA
>
> "Frank" <frankenberryz@.yahoo.com> wrote in message
> news:eY0Bb.6$1i.21421@.news.uswest.net...
> > I have a table set up with a primary key identity column. Most of the
time
> > this works fine, but there are occasions where I need to update a record
> and
> > set the primary key to a number that is not in the identity sequence.
For
> > instance the identity value is 160001 and I need to manually update a
> > record's primary key to 5000.
> >
> > So far the only way I know how to do this is to go into Enterprise
manager
> > and select identity to NO on the identity field to save the table, run
my
> > update queries, go back into Enterprise manager and set identity back to
> YES
> > and resave. I am sure there must be a way I can put this process into a
> > script. Is there are way to do this in TSQL without having to use
> Enterprise
> > Manager?
> >
> > Example:
> > Identity primary key customer_id 160001 needs to be updated to 5000 and
> > afterwards restore identity back to 160001
> >
> > thanks,
> > Frank
> >
> >
>|||Step 1: Make an INSERT script for the row with PK value 5000.
Step 2: Delete the existing row with PK value 160001
Step 3: Set IDENTITY_INSERT for the table ON
Step 4: Run the INSERT script for PK 5000
Step 5: Set IDENTITY_INSERT for the table OFF
Step 6: Run DBCC CHECKIDENT(<tablename>, RESEED, 16000)
Hope this helps.
Friday, March 23, 2012
Reset Report Manager
I've done something bad that prevents Report Manager from running. Every time I try to call it up in a browser, I get error messages complaining about a null object.
Is there a way to get the report manager to "start fresh"? For example, would deleting the entries in the catalog table do the trick.
Thanks for any help.
What exception do you see in the report server log file?|||The log shows:
<Header>
<Product>Microsoft SQL Server Reporting Services Version 9.00.1399.00</Product>
<Locale>en-US</Locale>
<TimeZone>Eastern Daylight Time</TimeZone>
<Path>C:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\LogFiles\ReportServerWebApp__04_18_2006_07_52_53.log</Path>
<SystemName>MERCURY</SystemName>
<OSName>Microsoft Windows NT 5.2.3790 Service Pack 1</OSName>
<OSVersion>5.2.3790.65536</OSVersion>
</Header>
w3wp!library!1!4/18/2006-07:52:54:: i INFO: Initializing ReportBuilderTrustLevel to '0' as specified in Configuration file.
w3wp!library!1!4/18/2006-07:52:54:: i INFO: Initializing MaxActiveReqForOneUser to '20' requests(s) as specified in Configuration file.
w3wp!library!1!4/18/2006-07:52:54:: i INFO: Initializing MaxScheduleWait to default value of '1' second(s) because it was not specified in Configuration file.
w3wp!library!1!4/18/2006-07:52:54:: i INFO: Initializing DatabaseQueryTimeout to default value of '30' second(s) because it was not specified in Configuration file.
w3wp!library!1!4/18/2006-07:52:54:: i INFO: Initializing ProcessRecycleOptions to default value of '0' because it was not specified in Configuration file.
w3wp!library!1!4/18/2006-07:52:54:: i INFO: Initializing RunningRequestsScavengerCycle to default value of '30' second(s) because it was not specified in Configuration file.
w3wp!library!1!4/18/2006-07:52:54:: i INFO: Initializing RunningRequestsDbCycle to default value of '30' second(s) because it was not specified in Configuration file.
w3wp!library!1!4/18/2006-07:52:54:: i INFO: Initializing RunningRequestsAge to default value of '30' second(s) because it was not specified in Configuration file.
w3wp!library!1!4/18/2006-07:52:54:: i INFO: Initializing CleanupCycleMinutes to default value of '10' minute(s) because it was not specified in Configuration file.
w3wp!library!1!4/18/2006-07:52:54:: i INFO: Initializing DailyCleanupMinuteOfDay to default value of '120' minutes since midnight because it was not specified in Configuration file.
w3wp!library!1!4/18/2006-07:52:54:: i INFO: Initializing WatsonFlags to default value of '1064' because it was not specified in Configuration file.
w3wp!library!1!4/18/2006-07:52:54:: i INFO: Initializing WatsonDumpOnExceptions to default value of 'Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException,Microsoft.ReportingServices.Modeling.InternalModelingException' because it was not specified in Configuration file.
w3wp!library!1!4/18/2006-07:52:54:: i INFO: Initializing WatsonDumpExcludeIfContainsExceptions to default value of 'System.Data.SqlClient.SqlException,System.Threading.ThreadAbortException' because it was not specified in Configuration file.
w3wp!library!1!4/18/2006-07:52:54:: i INFO: Initializing SecureConnectionLevel to default value of '1' because it was not specified in Configuration file.
w3wp!library!1!4/18/2006-07:52:54:: i INFO: Initializing DisplayErrorLink to 'True' as specified in Configuration file.
w3wp!library!1!4/18/2006-07:52:54:: i INFO: Initializing WebServiceUseFileShareStorage to default value of 'False' because it was not specified in Configuration file.
w3wp!ui!1!4/18/2006-07:52:55:: Unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.ReportingServices.UI.GlobalApp.Application_AuthenticateRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
I found my problem.
I had authentication mode set to "None" in web.config. As soon as I changed it to "Windows" the problem went away.
Reset Identity Field Without dropping the table
I need to reset an Identity field to 1 from time to time.
The table is uses as as job list, the completed job are removed from the
table, there will not be a conflict of numbers at any stage, as the number
of entries per period are far less than the current Identity number.
Currently I drop the table, triggers and index and then create it again,
this is not an elegant solution!
System Configuration
Sql2000 with sp3 Windows 2003 Server
Thanks in advance
Edward Potgieter
edwardp@.foskor.co.za
You can use TRUNCATE TABLE tablename if you want to lose the existing data.
(Though this has some limitations, e.g. if there are foreign keys pointing
to the table... also if your triggers are used for logging deletes etc, I
haven't tested that scenario with truncate.) TRUNCATE can be faster than a
delete because it is logged less (I believe just the page rather than
rows)...
Check out DBCC CHECKIDENT in Books Online also, though this will be useful
usually only if you want to change the seed and keep the data, not reset to
1 (which sounds like the table is empty).
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Edward Potgieter" <edwardp@.foskor.co.za> wrote in message
news:b-udnbB2Qc4yIzHdRVn-sA@.is.co.za...
> Hi
> I need to reset an Identity field to 1 from time to time.
> The table is uses as as job list, the completed job are removed from the
> table, there will not be a conflict of numbers at any stage, as the number
> of entries per period are far less than the current Identity number.
> Currently I drop the table, triggers and index and then create it again,
> this is not an elegant solution!
> System Configuration
> Sql2000 with sp3 Windows 2003 Server
> Thanks in advance
> Edward Potgieter
> edwardp@.foskor.co.za
>
>
|||Try this: http://vyaskn.tripod.com/administration_faq.htm#q2
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
Is .NET important for a database professional?
http://vyaskn.tripod.com/poll.htm
"Edward Potgieter" <edwardp@.foskor.co.za> wrote in message
news:b-udnbB2Qc4yIzHdRVn-sA@.is.co.za...
Hi
I need to reset an Identity field to 1 from time to time.
The table is uses as as job list, the completed job are removed from the
table, there will not be a conflict of numbers at any stage, as the number
of entries per period are far less than the current Identity number.
Currently I drop the table, triggers and index and then create it again,
this is not an elegant solution!
System Configuration
Sql2000 with sp3 Windows 2003 Server
Thanks in advance
Edward Potgieter
edwardp@.foskor.co.za
|||Here is how I reseed tables:
declare @.i int
select @.I = max(YourIdentityColumn) from YourTable
if @.I is null DBCC CHECKIDENT (YourTable, RESEED, 0)
else DBCC CHECKIDENT (YourTable, RESEED, @.I)
----
Need SQL Server Examples check out my website at
http://www.geocities.com/sqlserverexamples
"Edward Potgieter" <edwardp@.foskor.co.za> wrote in message
news:b-udnbB2Qc4yIzHdRVn-sA@.is.co.za...
> Hi
> I need to reset an Identity field to 1 from time to time.
> The table is uses as as job list, the completed job are removed from the
> table, there will not be a conflict of numbers at any stage, as the number
> of entries per period are far less than the current Identity number.
> Currently I drop the table, triggers and index and then create it again,
> this is not an elegant solution!
> System Configuration
> Sql2000 with sp3 Windows 2003 Server
> Thanks in advance
> Edward Potgieter
> edwardp@.foskor.co.za
>
>
Reset Identity Field Without dropping the table
I need to reset an Identity field to 1 from time to time.
The table is uses as as job list, the completed job are removed from the
table, there will not be a conflict of numbers at any stage, as the number
of entries per period are far less than the current Identity number.
Currently I drop the table, triggers and index and then create it again,
this is not an elegant solution!
System Configuration
Sql2000 with sp3 Windows 2003 Server
Thanks in advance
Edward Potgieter
edwardp@.foskor.co.zaYou can use TRUNCATE TABLE tablename if you want to lose the existing data.
(Though this has some limitations, e.g. if there are foreign keys pointing
to the table... also if your triggers are used for logging deletes etc, I
haven't tested that scenario with truncate.) TRUNCATE can be faster than a
delete because it is logged less (I believe just the page rather than
rows)...
Check out DBCC CHECKIDENT in Books Online also, though this will be useful
usually only if you want to change the seed and keep the data, not reset to
1 (which sounds like the table is empty).
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Edward Potgieter" <edwardp@.foskor.co.za> wrote in message
news:b-udnbB2Qc4yIzHdRVn-sA@.is.co.za...
> Hi
> I need to reset an Identity field to 1 from time to time.
> The table is uses as as job list, the completed job are removed from the
> table, there will not be a conflict of numbers at any stage, as the number
> of entries per period are far less than the current Identity number.
> Currently I drop the table, triggers and index and then create it again,
> this is not an elegant solution!
> System Configuration
> Sql2000 with sp3 Windows 2003 Server
> Thanks in advance
> Edward Potgieter
> edwardp@.foskor.co.za
>
>|||Try this: http://vyaskn.tripod.com/administration_faq.htm#q2
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
Is .NET important for a database professional?
http://vyaskn.tripod.com/poll.htm
"Edward Potgieter" <edwardp@.foskor.co.za> wrote in message
news:b-udnbB2Qc4yIzHdRVn-sA@.is.co.za...
Hi
I need to reset an Identity field to 1 from time to time.
The table is uses as as job list, the completed job are removed from the
table, there will not be a conflict of numbers at any stage, as the number
of entries per period are far less than the current Identity number.
Currently I drop the table, triggers and index and then create it again,
this is not an elegant solution!
System Configuration
Sql2000 with sp3 Windows 2003 Server
Thanks in advance
Edward Potgieter
edwardp@.foskor.co.za|||Here is how I reseed tables:
declare @.i int
select @.I = max(YourIdentityColumn) from YourTable
if @.I is null DBCC CHECKIDENT (YourTable, RESEED, 0)
else DBCC CHECKIDENT (YourTable, RESEED, @.I)
----
----
--
Need SQL Server Examples check out my website at
http://www.geocities.com/sqlserverexamples
"Edward Potgieter" <edwardp@.foskor.co.za> wrote in message
news:b-udnbB2Qc4yIzHdRVn-sA@.is.co.za...
> Hi
> I need to reset an Identity field to 1 from time to time.
> The table is uses as as job list, the completed job are removed from the
> table, there will not be a conflict of numbers at any stage, as the number
> of entries per period are far less than the current Identity number.
> Currently I drop the table, triggers and index and then create it again,
> this is not an elegant solution!
> System Configuration
> Sql2000 with sp3 Windows 2003 Server
> Thanks in advance
> Edward Potgieter
> edwardp@.foskor.co.za
>
>sql
Reset Identity Field Without dropping the table
I need to reset an Identity field to 1 from time to time.
The table is uses as as job list, the completed job are removed from the
table, there will not be a conflict of numbers at any stage, as the number
of entries per period are far less than the current Identity number.
Currently I drop the table, triggers and index and then create it again,
this is not an elegant solution!
System Configuration
Sql2000 with sp3 Windows 2003 Server
Thanks in advance
Edward Potgieter
edwardp@.foskor.co.zaYou can use TRUNCATE TABLE tablename if you want to lose the existing data.
(Though this has some limitations, e.g. if there are foreign keys pointing
to the table... also if your triggers are used for logging deletes etc, I
haven't tested that scenario with truncate.) TRUNCATE can be faster than a
delete because it is logged less (I believe just the page rather than
rows)...
Check out DBCC CHECKIDENT in Books Online also, though this will be useful
usually only if you want to change the seed and keep the data, not reset to
1 (which sounds like the table is empty).
--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Edward Potgieter" <edwardp@.foskor.co.za> wrote in message
news:b-udnbB2Qc4yIzHdRVn-sA@.is.co.za...
> Hi
> I need to reset an Identity field to 1 from time to time.
> The table is uses as as job list, the completed job are removed from the
> table, there will not be a conflict of numbers at any stage, as the number
> of entries per period are far less than the current Identity number.
> Currently I drop the table, triggers and index and then create it again,
> this is not an elegant solution!
> System Configuration
> Sql2000 with sp3 Windows 2003 Server
> Thanks in advance
> Edward Potgieter
> edwardp@.foskor.co.za
>
>|||Try this: http://vyaskn.tripod.com/administration_faq.htm#q2
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
Is .NET important for a database professional?
http://vyaskn.tripod.com/poll.htm
"Edward Potgieter" <edwardp@.foskor.co.za> wrote in message
news:b-udnbB2Qc4yIzHdRVn-sA@.is.co.za...
Hi
I need to reset an Identity field to 1 from time to time.
The table is uses as as job list, the completed job are removed from the
table, there will not be a conflict of numbers at any stage, as the number
of entries per period are far less than the current Identity number.
Currently I drop the table, triggers and index and then create it again,
this is not an elegant solution!
System Configuration
Sql2000 with sp3 Windows 2003 Server
Thanks in advance
Edward Potgieter
edwardp@.foskor.co.za|||Here is how I reseed tables:
declare @.i int
select @.I = max(YourIdentityColumn) from YourTable
if @.I is null DBCC CHECKIDENT (YourTable, RESEED, 0)
else DBCC CHECKIDENT (YourTable, RESEED, @.I)
--
----
----
--
Need SQL Server Examples check out my website at
http://www.geocities.com/sqlserverexamples
"Edward Potgieter" <edwardp@.foskor.co.za> wrote in message
news:b-udnbB2Qc4yIzHdRVn-sA@.is.co.za...
> Hi
> I need to reset an Identity field to 1 from time to time.
> The table is uses as as job list, the completed job are removed from the
> table, there will not be a conflict of numbers at any stage, as the number
> of entries per period are far less than the current Identity number.
> Currently I drop the table, triggers and index and then create it again,
> this is not an elegant solution!
> System Configuration
> Sql2000 with sp3 Windows 2003 Server
> Thanks in advance
> Edward Potgieter
> edwardp@.foskor.co.za
>
>
Monday, March 12, 2012
requesting querry to insert date and time
Can anybody telll me how to give date and time to be printed in
sqlserver programmin.For example if u want to add data to a table using
insert command how can we enter date and time in that.
please reply me soon.
thanks for helping.Did you have a look on the getdate() function ?
INSERt INTO SomeTable
( colList ... )
VALUES
(
...
GETDATE(),
...
)
HTH, Jens Suessmeyer.|||Do you mean something like GETDATE() . This returns the system time and date
Jack Vamvas
________________________________________
__________________________
Receive free SQL tips - register at www.ciquery.com/sqlserver.htm
New article by Jack Vamvas - Improper Use of indexes on MS SQL: Server
2000 - www.ciquery.com/articles/useofindexes.asp
"gija" <girijak@.hotmail.com> wrote in message
news:1140035764.737565.125890@.g44g2000cwa.googlegroups.com...
> Hi,
> Can anybody telll me how to give date and time to be printed in
> sqlserver programmin.For example if u want to add data to a table using
> insert command how can we enter date and time in that.
> please reply me soon.
> thanks for helping.
>|||INSERT table(column) SELECT '2006-02-15T05:43:21';
INSERT table(column) VALUES('2006-02-15T05:43:21');
"gija" <girijak@.hotmail.com> wrote in message
news:1140035764.737565.125890@.g44g2000cwa.googlegroups.com...
> Hi,
> Can anybody telll me how to give date and time to be printed in
> sqlserver programmin.For example if u want to add data to a table using
> insert command how can we enter date and time in that.
> please reply me soon.
> thanks for helping.
>
Friday, March 9, 2012
Request for feedback - Aliases have been deprecated for some time and will be removed soon
As documented in SQL Server BOL, aliases have been deprecated for some time and we are planning to remove them from the product in the next release.
We will greatly appreciate any feedback or comments regarding this change. We would like to know how our customers will be affected by this change and analyze if there is anything we can do to help you to make the transition easier.
Thanks a lot,
-Raul Garcia
SDE/T
SQL Server Engine
We are also planning on removing the following stored procedures in the next release:
sp_addgroup, sp_dropgroup, sp_changegroup, sp_helpgroup
Thanks,
Jack Richins
SDE
SQL Server Engine
Alias were superseded by roles in SQL Server 2000, for more information you can visit the following BOL pages:
· Deprecated Database Engine Features in SQL Server 2005 (under “Features Not Supported in the Next Version of SQL Server” ): http://msdn2.microsoft.com/en-us/library/ms143729.aspx
· Create User (TSQL): http://msdn2.microsoft.com/en-us/library/ms173463.aspx
· Create role (TSQL): http://msdn2.microsoft.com/en-us/library/ms187936.aspx
Hopefully these links will help on the migration process to use roles, and it will also help to clarify the nature of the planned change in the next release of SQL Server.Thanks a lot, for your feedback.
-Raul Garcia
SDE/T
SQL Server Engine
|||RaulAppreciate your links in this case, I will ask my users to understand to have more information and post back if any further details are required.
Thanks.|||
Raul
Have you had any feedback in this regard, would like to know more about it.
|||We have not recieved any additional comments with regard to the removal of aliases.|||I haven't run across a customer using aliases for a VERY long time. I don't see any issues with removing them as far as any of my customers are concerned.|||I have not seen aliases in a very long time - I would have to go back to my SQL Server 6.5 days. I look after 70+ production SQL Server (6.5,7, 2000, & 2005) and will lose no sleep on this.
|||I haven't seen them at any site in the past few years at least.
-Sue
|||So they will be removed in next release of SQL or service pack?|||They will be removed on the next release.
-Raul Garcia
SDE/T
SQL Server Engine
|||Removal would be a good thing as I get too many questions from junior developers about what I should and should not be using.
|||I am fine with the change|||Agreed. No issues here with removing them from Katmai.Request for feedback - Aliases have been deprecated for some time and will be removed soon
As documented in SQL Server BOL, aliases have been deprecated for some time and we are planning to remove them from the product in the next release.
We will greatly appreciate any feedback or comments regarding this change. We would like to know how our customers will be affected by this change and analyze if there is anything we can do to help you to make the transition easier.
Thanks a lot,
-Raul Garcia
SDE/T
SQL Server Engine
We are also planning on removing the following stored procedures in the next release:
sp_addgroup, sp_dropgroup, sp_changegroup, sp_helpgroup
Thanks,
Jack Richins
SDE
SQL Server Engine
Alias were superseded by roles in SQL Server 2000, for more information you can visit the following BOL pages:
· Deprecated Database Engine Features in SQL Server 2005 (under “Features Not Supported in the Next Version of SQL Server” ): http://msdn2.microsoft.com/en-us/library/ms143729.aspx
· Create User (TSQL): http://msdn2.microsoft.com/en-us/library/ms173463.aspx
· Create role (TSQL): http://msdn2.microsoft.com/en-us/library/ms187936.aspx
Hopefully these links will help on the migration process to use roles, and it will also help to clarify the nature of the planned change in the next release of SQL Server.Thanks a lot, for your feedback.
-Raul Garcia
SDE/T
SQL Server Engine
|||RaulAppreciate your links in this case, I will ask my users to understand to have more information and post back if any further details are required.
Thanks.|||
Raul
Have you had any feedback in this regard, would like to know more about it.
|||We have not recieved any additional comments with regard to the removal of aliases.|||I haven't run across a customer using aliases for a VERY long time. I don't see any issues with removing them as far as any of my customers are concerned.|||I have not seen aliases in a very long time - I would have to go back to my SQL Server 6.5 days. I look after 70+ production SQL Server (6.5,7, 2000, & 2005) and will lose no sleep on this.
|||I haven't seen them at any site in the past few years at least.
-Sue
|||So they will be removed in next release of SQL or service pack?|||They will be removed on the next release.
-Raul Garcia
SDE/T
SQL Server Engine
|||Removal would be a good thing as I get too many questions from junior developers about what I should and should not be using.
|||I am fine with the change|||Agreed. No issues here with removing them from Katmai.Request for feedback - Aliases have been deprecated for some time and will be removed soon
As documented in SQL Server BOL, aliases have been deprecated for some time and we are planning to remove them from the product in the next release.
We will greatly appreciate any feedback or comments regarding this change. We would like to know how our customers will be affected by this change and analyze if there is anything we can do to help you to make the transition easier.
Thanks a lot,
-Raul Garcia
SDE/T
SQL Server Engine
We are also planning on removing the following stored procedures in the next release:
sp_addgroup, sp_dropgroup, sp_changegroup, sp_helpgroup
Thanks,
Jack Richins
SDE
SQL Server Engine
Alias were superseded by roles in SQL Server 2000, for more information you can visit the following BOL pages:
· Deprecated Database Engine Features in SQL Server 2005 (under “Features Not Supported in the Next Version of SQL Server” ): http://msdn2.microsoft.com/en-us/library/ms143729.aspx
· Create User (TSQL): http://msdn2.microsoft.com/en-us/library/ms173463.aspx
· Create role (TSQL): http://msdn2.microsoft.com/en-us/library/ms187936.aspx
Hopefully these links will help on the migration process to use roles, and it will also help to clarify the nature of the planned change in the next release of SQL Server.Thanks a lot, for your feedback.
-Raul Garcia
SDE/T
SQL Server Engine
|||RaulAppreciate your links in this case, I will ask my users to understand to have more information and post back if any further details are required.
Thanks.|||
Raul
Have you had any feedback in this regard, would like to know more about it.
|||We have not recieved any additional comments with regard to the removal of aliases.|||I haven't run across a customer using aliases for a VERY long time. I don't see any issues with removing them as far as any of my customers are concerned.|||I have not seen aliases in a very long time - I would have to go back to my SQL Server 6.5 days. I look after 70+ production SQL Server (6.5,7, 2000, & 2005) and will lose no sleep on this.
|||I haven't seen them at any site in the past few years at least.
-Sue
|||So they will be removed in next release of SQL or service pack?|||They will be removed on the next release.
-Raul Garcia
SDE/T
SQL Server Engine
|||Removal would be a good thing as I get too many questions from junior developers about what I should and should not be using.
|||I am fine with the change|||Agreed. No issues here with removing them from Katmai.Request for feedback - Aliases have been deprecated for some time and will be removed soon
As documented in SQL Server BOL, aliases have been deprecated for some time and we are planning to remove them from the product in the next release.
We will greatly appreciate any feedback or comments regarding this change. We would like to know how our customers will be affected by this change and analyze if there is anything we can do to help you to make the transition easier.
Thanks a lot,
-Raul Garcia
SDE/T
SQL Server Engine
We are also planning on removing the following stored procedures in the next release:
sp_addgroup, sp_dropgroup, sp_changegroup, sp_helpgroup
Thanks,
Jack Richins
SDE
SQL Server Engine
Alias were superseded by roles in SQL Server 2000, for more information you can visit the following BOL pages:
· Deprecated Database Engine Features in SQL Server 2005 (under “Features Not Supported in the Next Version of SQL Server” ): http://msdn2.microsoft.com/en-us/library/ms143729.aspx
· Create User (TSQL): http://msdn2.microsoft.com/en-us/library/ms173463.aspx
· Create role (TSQL): http://msdn2.microsoft.com/en-us/library/ms187936.aspx
Hopefully these links will help on the migration process to use roles, and it will also help to clarify the nature of the planned change in the next release of SQL Server.Thanks a lot, for your feedback.
-Raul Garcia
SDE/T
SQL Server Engine
|||RaulAppreciate your links in this case, I will ask my users to understand to have more information and post back if any further details are required.
Thanks.|||
Raul
Have you had any feedback in this regard, would like to know more about it.
|||We have not recieved any additional comments with regard to the removal of aliases.|||I haven't run across a customer using aliases for a VERY long time. I don't see any issues with removing them as far as any of my customers are concerned.|||I have not seen aliases in a very long time - I would have to go back to my SQL Server 6.5 days. I look after 70+ production SQL Server (6.5,7, 2000, & 2005) and will lose no sleep on this.
|||I haven't seen them at any site in the past few years at least.
-Sue
|||So they will be removed in next release of SQL or service pack?|||They will be removed on the next release.
-Raul Garcia
SDE/T
SQL Server Engine
|||Removal would be a good thing as I get too many questions from junior developers about what I should and should not be using.
|||I am fine with the change|||Agreed. No issues here with removing them from Katmai.Request for feedback - Aliases have been deprecated for some time and will be removed soon
As documented in SQL Server BOL, aliases have been deprecated for some time and we are planning to remove them from the product in the next release.
We will greatly appreciate any feedback or comments regarding this change. We would like to know how our customers will be affected by this change and analyze if there is anything we can do to help you to make the transition easier.
Thanks a lot,
-Raul Garcia
SDE/T
SQL Server Engine
We are also planning on removing the following stored procedures in the next release:
sp_addgroup, sp_dropgroup, sp_changegroup, sp_helpgroup
Thanks,
Jack Richins
SDE
SQL Server Engine
Alias were superseded by roles in SQL Server 2000, for more information you can visit the following BOL pages:
· Deprecated Database Engine Features in SQL Server 2005 (under “Features Not Supported in the Next Version of SQL Server” ): http://msdn2.microsoft.com/en-us/library/ms143729.aspx
· Create User (TSQL): http://msdn2.microsoft.com/en-us/library/ms173463.aspx
· Create role (TSQL): http://msdn2.microsoft.com/en-us/library/ms187936.aspx
Hopefully these links will help on the migration process to use roles, and it will also help to clarify the nature of the planned change in the next release of SQL Server.Thanks a lot, for your feedback.
-Raul Garcia
SDE/T
SQL Server Engine
|||RaulAppreciate your links in this case, I will ask my users to understand to have more information and post back if any further details are required.
Thanks.|||
Raul
Have you had any feedback in this regard, would like to know more about it.
|||We have not recieved any additional comments with regard to the removal of aliases.|||I haven't run across a customer using aliases for a VERY long time. I don't see any issues with removing them as far as any of my customers are concerned.|||I have not seen aliases in a very long time - I would have to go back to my SQL Server 6.5 days. I look after 70+ production SQL Server (6.5,7, 2000, & 2005) and will lose no sleep on this.
|||I haven't seen them at any site in the past few years at least.
-Sue
|||So they will be removed in next release of SQL or service pack?|||They will be removed on the next release.
-Raul Garcia
SDE/T
SQL Server Engine
|||Removal would be a good thing as I get too many questions from junior developers about what I should and should not be using.
|||I am fine with the change|||Agreed. No issues here with removing them from Katmai.Request for feedback - Aliases have been deprecated for some time and will be removed soon
As documented in SQL Server BOL, aliases have been deprecated for some time and we are planning to remove them from the product in the next release.
We will greatly appreciate any feedback or comments regarding this change. We would like to know how our customers will be affected by this change and analyze if there is anything we can do to help you to make the transition easier.
Thanks a lot,
-Raul Garcia
SDE/T
SQL Server Engine
We are also planning on removing the following stored procedures in the next release:
sp_addgroup, sp_dropgroup, sp_changegroup, sp_helpgroup
Thanks,
Jack Richins
SDE
SQL Server Engine
Alias were superseded by roles in SQL Server 2000, for more information you can visit the following BOL pages:
· Deprecated Database Engine Features in SQL Server 2005 (under “Features Not Supported in the Next Version of SQL Server” ): http://msdn2.microsoft.com/en-us/library/ms143729.aspx
· Create User (TSQL): http://msdn2.microsoft.com/en-us/library/ms173463.aspx
· Create role (TSQL): http://msdn2.microsoft.com/en-us/library/ms187936.aspx
Hopefully these links will help on the migration process to use roles, and it will also help to clarify the nature of the planned change in the next release of SQL Server.Thanks a lot, for your feedback.
-Raul Garcia
SDE/T
SQL Server Engine
|||RaulAppreciate your links in this case, I will ask my users to understand to have more information and post back if any further details are required.
Thanks.|||
Raul
Have you had any feedback in this regard, would like to know more about it.
|||We have not recieved any additional comments with regard to the removal of aliases.|||I haven't run across a customer using aliases for a VERY long time. I don't see any issues with removing them as far as any of my customers are concerned.|||I have not seen aliases in a very long time - I would have to go back to my SQL Server 6.5 days. I look after 70+ production SQL Server (6.5,7, 2000, & 2005) and will lose no sleep on this.
|||I haven't seen them at any site in the past few years at least.
-Sue
|||So they will be removed in next release of SQL or service pack?|||They will be removed on the next release.
-Raul Garcia
SDE/T
SQL Server Engine
|||Removal would be a good thing as I get too many questions from junior developers about what I should and should not be using.
|||I am fine with the change|||Agreed. No issues here with removing them from Katmai.Request for feedback - Aliases have been deprecated for some time and will be removed soon
As documented in SQL Server BOL, aliases have been deprecated for some time and we are planning to remove them from the product in the next release.
We will greatly appreciate any feedback or comments regarding this change. We would like to know how our customers will be affected by this change and analyze if there is anything we can do to help you to make the transition easier.
Thanks a lot,
-Raul Garcia
SDE/T
SQL Server Engine
We are also planning on removing the following stored procedures in the next release:
sp_addgroup, sp_dropgroup, sp_changegroup, sp_helpgroup
Thanks,
Jack Richins
SDE
SQL Server Engine
Alias were superseded by roles in SQL Server 2000, for more information you can visit the following BOL pages:
· Deprecated Database Engine Features in SQL Server 2005 (under “Features Not Supported in the Next Version of SQL Server” ): http://msdn2.microsoft.com/en-us/library/ms143729.aspx
· Create User (TSQL): http://msdn2.microsoft.com/en-us/library/ms173463.aspx
· Create role (TSQL): http://msdn2.microsoft.com/en-us/library/ms187936.aspx
Hopefully these links will help on the migration process to use roles, and it will also help to clarify the nature of the planned change in the next release of SQL Server.Thanks a lot, for your feedback.
-Raul Garcia
SDE/T
SQL Server Engine
|||RaulAppreciate your links in this case, I will ask my users to understand to have more information and post back if any further details are required.
Thanks.|||
Raul
Have you had any feedback in this regard, would like to know more about it.
|||We have not recieved any additional comments with regard to the removal of aliases.|||I haven't run across a customer using aliases for a VERY long time. I don't see any issues with removing them as far as any of my customers are concerned.|||I have not seen aliases in a very long time - I would have to go back to my SQL Server 6.5 days. I look after 70+ production SQL Server (6.5,7, 2000, & 2005) and will lose no sleep on this.
|||I haven't seen them at any site in the past few years at least.
-Sue
|||So they will be removed in next release of SQL or service pack?|||They will be removed on the next release.
-Raul Garcia
SDE/T
SQL Server Engine
|||Removal would be a good thing as I get too many questions from junior developers about what I should and should not be using.
|||I am fine with the change|||Agreed. No issues here with removing them from Katmai.Request for feedback - Aliases have been deprecated for some time and will be removed soon
As documented in SQL Server BOL, aliases have been deprecated for some time and we are planning to remove them from the product in the next release.
We will greatly appreciate any feedback or comments regarding this change. We would like to know how our customers will be affected by this change and analyze if there is anything we can do to help you to make the transition easier.
Thanks a lot,
-Raul Garcia
SDE/T
SQL Server Engine
We are also planning on removing the following stored procedures in the next release:
sp_addgroup, sp_dropgroup, sp_changegroup, sp_helpgroup
Thanks,
Jack Richins
SDE
SQL Server Engine
Alias were superseded by roles in SQL Server 2000, for more information you can visit the following BOL pages:
· Deprecated Database Engine Features in SQL Server 2005 (under “Features Not Supported in the Next Version of SQL Server” ): http://msdn2.microsoft.com/en-us/library/ms143729.aspx
· Create User (TSQL): http://msdn2.microsoft.com/en-us/library/ms173463.aspx
· Create role (TSQL): http://msdn2.microsoft.com/en-us/library/ms187936.aspx
Hopefully these links will help on the migration process to use roles, and it will also help to clarify the nature of the planned change in the next release of SQL Server.Thanks a lot, for your feedback.
-Raul Garcia
SDE/T
SQL Server Engine
|||RaulAppreciate your links in this case, I will ask my users to understand to have more information and post back if any further details are required.
Thanks.|||
Raul
Have you had any feedback in this regard, would like to know more about it.
|||We have not recieved any additional comments with regard to the removal of aliases.|||I haven't run across a customer using aliases for a VERY long time. I don't see any issues with removing them as far as any of my customers are concerned.|||I have not seen aliases in a very long time - I would have to go back to my SQL Server 6.5 days. I look after 70+ production SQL Server (6.5,7, 2000, & 2005) and will lose no sleep on this.
|||I haven't seen them at any site in the past few years at least.
-Sue
|||So they will be removed in next release of SQL or service pack?|||They will be removed on the next release.
-Raul Garcia
SDE/T
SQL Server Engine
|||Removal would be a good thing as I get too many questions from junior developers about what I should and should not be using.
|||I am fine with the change|||Agreed. No issues here with removing them from Katmai.Request for feedback - Aliases have been deprecated for some time and will be removed soon
As documented in SQL Server BOL, aliases have been deprecated for some time and we are planning to remove them from the product in the next release.
We will greatly appreciate any feedback or comments regarding this change. We would like to know how our customers will be affected by this change and analyze if there is anything we can do to help you to make the transition easier.
Thanks a lot,
-Raul Garcia
SDE/T
SQL Server Engine
We are also planning on removing the following stored procedures in the next release:
sp_addgroup, sp_dropgroup, sp_changegroup, sp_helpgroup
Thanks,
Jack Richins
SDE
SQL Server Engine
Alias were superseded by roles in SQL Server 2000, for more information you can visit the following BOL pages:
· Deprecated Database Engine Features in SQL Server 2005 (under “Features Not Supported in the Next Version of SQL Server” ): http://msdn2.microsoft.com/en-us/library/ms143729.aspx
· Create User (TSQL): http://msdn2.microsoft.com/en-us/library/ms173463.aspx
· Create role (TSQL): http://msdn2.microsoft.com/en-us/library/ms187936.aspx
Hopefully these links will help on the migration process to use roles, and it will also help to clarify the nature of the planned change in the next release of SQL Server.Thanks a lot, for your feedback.
-Raul Garcia
SDE/T
SQL Server Engine
|||RaulAppreciate your links in this case, I will ask my users to understand to have more information and post back if any further details are required.
Thanks.|||
Raul
Have you had any feedback in this regard, would like to know more about it.
|||We have not recieved any additional comments with regard to the removal of aliases.|||I haven't run across a customer using aliases for a VERY long time. I don't see any issues with removing them as far as any of my customers are concerned.|||I have not seen aliases in a very long time - I would have to go back to my SQL Server 6.5 days. I look after 70+ production SQL Server (6.5,7, 2000, & 2005) and will lose no sleep on this.
|||I haven't seen them at any site in the past few years at least.
-Sue
|||So they will be removed in next release of SQL or service pack?|||They will be removed on the next release.
-Raul Garcia
SDE/T
SQL Server Engine
|||Removal would be a good thing as I get too many questions from junior developers about what I should and should not be using.
|||I am fine with the change|||Agreed. No issues here with removing them from Katmai.Request for feedback - Aliases have been deprecated for some time and will be removed soon
As documented in SQL Server BOL, aliases have been deprecated for some time and we are planning to remove them from the product in the next release.
We will greatly appreciate any feedback or comments regarding this change. We would like to know how our customers will be affected by this change and analyze if there is anything we can do to help you to make the transition easier.
Thanks a lot,
-Raul Garcia
SDE/T
SQL Server Engine
We are also planning on removing the following stored procedures in the next release:
sp_addgroup, sp_dropgroup, sp_changegroup, sp_helpgroup
Thanks,
Jack Richins
SDE
SQL Server Engine
Alias were superseded by roles in SQL Server 2000, for more information you can visit the following BOL pages:
· Deprecated Database Engine Features in SQL Server 2005 (under “Features Not Supported in the Next Version of SQL Server” ): http://msdn2.microsoft.com/en-us/library/ms143729.aspx
· Create User (TSQL): http://msdn2.microsoft.com/en-us/library/ms173463.aspx
· Create role (TSQL): http://msdn2.microsoft.com/en-us/library/ms187936.aspx
Hopefully these links will help on the migration process to use roles, and it will also help to clarify the nature of the planned change in the next release of SQL Server.Thanks a lot, for your feedback.
-Raul Garcia
SDE/T
SQL Server Engine
|||RaulAppreciate your links in this case, I will ask my users to understand to have more information and post back if any further details are required.
Thanks.|||
Raul
Have you had any feedback in this regard, would like to know more about it.
|||We have not recieved any additional comments with regard to the removal of aliases.|||I haven't run across a customer using aliases for a VERY long time. I don't see any issues with removing them as far as any of my customers are concerned.|||I have not seen aliases in a very long time - I would have to go back to my SQL Server 6.5 days. I look after 70+ production SQL Server (6.5,7, 2000, & 2005) and will lose no sleep on this.
|||I haven't seen them at any site in the past few years at least.
-Sue
|||So they will be removed in next release of SQL or service pack?|||They will be removed on the next release.
-Raul Garcia
SDE/T
SQL Server Engine
|||Removal would be a good thing as I get too many questions from junior developers about what I should and should not be using.
|||I am fine with the change|||Agreed. No issues here with removing them from Katmai.request data from specified time
Timecreated as datetime. I need to request the maximum price where the
Timecreated is greater than some value, in this case 9/13/2004 3:09:29 PM.
How exactly do I get data from a specified time?
ThanksOn Mon, 13 Sep 2004 16:05:36 +1000, Fred wrote:
>I have a table (Tickdata; Contract,Price,Timecreated) which stores
>Timecreated as datetime. I need to request the maximum price where the
>Timecreated is greater than some value, in this case 9/13/2004 3:09:29 PM.
>How exactly do I get data from a specified time?
>Thanks
Hi Fred,
SELECT MAX(Price)
FROM TickDate
WHERE Timecreated > '2004-09-13T15:09:29'
?
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)|||Works like a charm. Thanks
"Hugo Kornelis" <hugo@.pe_NO_rFact.in_SPAM_fo> wrote in message
news:2toak01nidr0q0d8bqhahn4oa21lbkh1kn@.4ax.com...
> On Mon, 13 Sep 2004 16:05:36 +1000, Fred wrote:
> >I have a table (Tickdata; Contract,Price,Timecreated) which stores
> >Timecreated as datetime. I need to request the maximum price where the
> >Timecreated is greater than some value, in this case 9/13/2004 3:09:29
PM.
> >How exactly do I get data from a specified time?
> >Thanks
> Hi Fred,
> SELECT MAX(Price)
> FROM TickDate
> WHERE Timecreated > '2004-09-13T15:09:29'
> ?
> Best, Hugo
> --
> (Remove _NO_ and _SPAM_ to get my e-mail address)
Saturday, February 25, 2012
Repost: Databases with different collation
Hi group,
we have databases now residing on different servers or instances with
different collations. We are considering bringing the databases on the same
server, keeping their respective collation.
Some of our applications access databases with different collations. We
have been using linked server and specifying "Use remote collation" (or
not). But when putting the DBs with different collation on the same server,
you loss this feature. To go over all the applications and specify the
collation on the query statement level is of course too big a task. Is
there a way to do such a blanket declaration on the database level?
Or any other way of doing this efficiently?
Your responses are greatly appreciated.
QuentinQuentin,
I've been thinking about your problem and the only somewhat-feasible
solution I can think of is to create new databases with your server's
default collation and then use DTS to transfer the old databases in,
ignoring collation (I believe that's an option?)
This would, of course, be slower than just doing a backup/restore, but you'd
only have to do it once and it will definitely fix your issues.
"Quentin Ran" <ab@.who.com> wrote in message
news:uQvtBxdaEHA.2844@.TK2MSFTNGP12.phx.gbl...
> Let me try this one last time.
> Hi group,
> we have databases now residing on different servers or instances with
> different collations. We are considering bringing the databases on the
same
> server, keeping their respective collation.
> Some of our applications access databases with different collations. We
> have been using linked server and specifying "Use remote collation" (or
> not). But when putting the DBs with different collation on the same
server,
> you loss this feature. To go over all the applications and specify the
> collation on the query statement level is of course too big a task. Is
> there a way to do such a blanket declaration on the database level?
> Or any other way of doing this efficiently?
> Your responses are greatly appreciated.
> Quentin
>
>
>|||Thanks Adam.
I believe it still does not work. Say I have db1 with case sensetive, db2
case insensitive. The server default is case sensetive. I can put whatever
data into DB2 on the case sensetive server and make DB2 case sensetive.
However, my application dictates that a query run from db1 accessing db2
requires case insensitive -- currently achieved by linked server with use
remote collation -- and the requirement can not be satisfied.
Nevertheless, thanks again for keeping thinking about the problem.
Quentin
"Adam Machanic" <amachanic@.hotmail._removetoemail_.com> wrote in message
news:#NRk40daEHA.1152@.TK2MSFTNGP09.phx.gbl...
> Quentin,
> I've been thinking about your problem and the only somewhat-feasible
> solution I can think of is to create new databases with your server's
> default collation and then use DTS to transfer the old databases in,
> ignoring collation (I believe that's an option?)
> This would, of course, be slower than just doing a backup/restore, but
you'd
> only have to do it once and it will definitely fix your issues.
>
> "Quentin Ran" <ab@.who.com> wrote in message
> news:uQvtBxdaEHA.2844@.TK2MSFTNGP12.phx.gbl...
> same
> server,
>|||"Quentin Ran" <ab@.who.com> wrote in message
news:udZ1GXfaEHA.712@.TK2MSFTNGP11.phx.gbl...
> I believe it still does not work. Say I have db1 with case sensetive, db2
> case insensitive. The server default is case sensetive. I can put
whatever
> data into DB2 on the case sensetive server and make DB2 case sensetive.
> However, my application dictates that a query run from db1 accessing db2
> requires case insensitive -- currently achieved by linked server with use
> remote collation -- and the requirement can not be satisfied.
How many databases are already running on the server? Can you re-build
it and make it CI? CS is a hassle to work with anyway

At least, if you can re-collate most of the stuff, you'll only have to
mess with the queries that require CI... So that would be a step in the
right direction!|||
> How many databases are already running on the server? Can you
re-build
> it and make it CI? CS is a hassle to work with anyway

That's exactly the problem -- we are developing a new wide reaching
application that is case sensitive, required by the software vendor --
Peoplesoft. And it has interaction with our existing DBs that are CI.