| Thread | Last Post | Replies |
|
| Check constraint | 23 Dec 2008 23:45 GMT | 4 |
Can someone provide me with a sample script of how to do a check constraint with an If statement? If thats possible. For example, if there are 2 columns, track and collector. I would need to check if the collector was 'abc' then the tracking number must be like 'abc%'.
|
| Help with Auditing | 23 Dec 2008 23:21 GMT | 1 |
I have a java application that is using hibernate to connect to sql server 2008. The application is using a connection pool of 25 sql server database connections. Each connection is using the same sql login that is created for the application.
|
| Would like to use vb.net to enumerate through DTS connections | 23 Dec 2008 16:31 GMT | 2 |
Can someone supply a vb.net code snippet to enumerate through a DTS package's connection properties? I have been told it can be done, and while I am a vb.net novice I am willing to study the sample and learn how to extend it/ Thanks,
|
| BREAK keyword : BOL documentation wrong ? | 23 Dec 2008 11:51 GMT | 9 |
Using SQL Server 2005. According to BOL : http://msdn.microsoft.com/en-us/library/ms181271(SQL.90).aspx the BREAK keyword : "Exits the innermost loop in a WHILE or IF.ELSE
|
| group by date column -- how to exclude time part | 23 Dec 2008 11:42 GMT | 6 |
I need to run a group by query on the RunDate column. What is the syntax to only group on the date portion of the date value? I need to order these dates DESC. Here is what I tried that did not perform the ordering correctly: select convert(char(10), rundate, 101), count(*) cnt ...
|
| is server in mixed mode using TSQL? | 23 Dec 2008 10:48 GMT | 2 |
I have a script that I run on some of our servers to determine if the server is in mixed mode or not and if it is not then put it into mixed mode. The script works like this, Read the "loginMode" sub key of the microsoft sql server registry hive.
|
| Call SP from SP | 23 Dec 2008 09:37 GMT | 5 |
I would like to call a stored procedure from within a storec procedure. EXEC stored_proc_name @col1 = 'abc', @col2 =' xyz' stored_proc_name returns a single row containing a single int column. I would like to capture this value and use it to perform a subsequent stored procedure. ...
|
| mirroring failover works one way only | 23 Dec 2008 06:32 GMT | 4 |
I've set up a pair of sql servers (and a witness server) for database mirroring. I'm using the .net sql client with a connection string that specifies one server as the normal data source, and the other as the failover partner. To test failover, I wrote a small .NET app that ...
|
| Conversion failed when converting from a character string to uniqueidentifier. | 22 Dec 2008 22:56 GMT | 10 |
Using sql 08 I need to convert a string to a uniqueidentifer which is failing. Please advise how I can do this convertion. Thanks. DECLARE @id uniqueidentifier,
|
| CLR variable issue | 22 Dec 2008 22:10 GMT | 3 |
I created a vb.net CLR function that I'm going to use to search for patterns in a TEXT data type in SQL 2005. It appeared to be working fine but I'm concerned that I'm not getting the entire text. When I deploy the function in VB.net and then look at it in SQL, it's got the input ...
|
| Join with Like | 22 Dec 2008 21:37 GMT | 3 |
Why doesn't this return any results in SQL 2005? Create Table Table1 (Column1 NVarchar(20), Column2 NVarchar(20)) Create Table Table2
|
| Multiple conditions on one field in the where clause for stored procedure | 22 Dec 2008 20:15 GMT | 2 |
SQL2000 Let's say I am querying a table where I need to find records that have fielda equal to several different values. For example: select * from table where fielda = value1 OR fielda = value2 OR fieldA =
|
| "DATE(10)" at datetime | 22 Dec 2008 19:17 GMT | 4 |
I am looking at the schema for a table that I need to create at SQL Server 2005. I believe the original data comes from AS400. How do I indicate "(10)" in the regular "datetime" datatype?
|
| record reads | 22 Dec 2008 17:56 GMT | 2 |
ok. I have come into a project mid stream and want to set up up some indexes on the tables so that it makes it easier for the resources on the server. Is there any place in within SQL Server that is queryable that says this field is accessed 40000 times, and this field is ...
|
| [MSSQL 2000] How to drop a column of type uniqueidentifier | 22 Dec 2008 17:44 GMT | 3 |
I'v a tbale which has a column of type uniqueidentifier. So there is also a contraint "UNIQUE" which makes it difficult to drop the column. I can not drop the column or the constraint since they depend one on another. So how to drop a column of type uniqueidentifier?
|