| Thread | Last Post | Replies |
|
| Your recommendations to make this SP code more 'elegant' | 18 Dec 2008 23:54 GMT | 1 |
Hi SQL Experts, I have a table like this..: AgeCategory RegimenLine Regimen RefillID Medicine
|
| how to script a new user into a database role | 18 Dec 2008 23:47 GMT | 2 |
I've been tasked with creating a script that will put a Windows account into a SQL 2005 database role. Could somebody please give me a short list of steps that I should follow? (I'm assuming my list is incorrect or missing a very
|
| Using the LIKE keyword and wildcard matching with bound paramters | 18 Dec 2008 23:04 GMT | 3 |
Good day, I have a sproc that resembles something like: CREATE PROCEDURE myPROC @title varchar(100)
|
| Excel Automation sp_OACreate 'Excel.Application', @xl output | 18 Dec 2008 22:59 GMT | 3 |
Using the simple example below is there a way to change @Value from a single value to a recordset result like using CopyFromRecordset declare @xl integer declare @rs integer
|
| XML | 18 Dec 2008 20:52 GMT | 1 |
How do I use a query that has the "for xml auto" syntax? I'm using C#...but how does C# get to use the results? Anybody know? Bob Sweeney
|
| Using "." in field names. | 18 Dec 2008 19:21 GMT | 10 |
Is there any disaster waiting to happen to me if I use the "." character in database and table names? CREATE DATABASE [Cust04.DataCenter]; CREATE TABLE [Invoice.Lines]
|
| workaround the lack of cross-db foreign key support | 18 Dec 2008 18:34 GMT | 8 |
I'm working around the limitation where sqlserver doesn't support cross database foreign key constraint. Would there be a better way especially in performance than having this trigger below?. I couldn't think of a right way to deploy table-joint for this. I'm using sql2005 ...
|
| SSPI Kerberos for delegation | 18 Dec 2008 18:04 GMT | 1 |
We want the authentication to happen without providing credentials anywhere. For this we are planning to use Windows SSPI. Now the problem I am facing is once the authentication from client to server is successful, I want to use the
|
| unable to enable "SQL Server and Windows Authentication mode" | 18 Dec 2008 17:37 GMT | 3 |
I open up "Microsoft SQL Server Management Studio Express", right click on the instance name (ACER-55C1D4102C\DBNAME), click on the Security tab, and... Server authentication is grayed out. I'd like to select SQL Server and Windows Authentication mode but I can't - I
|
| Need to get Dynamic Results | 18 Dec 2008 16:15 GMT | 2 |
I have a report which has the following formulas from Month 1 to Month 12: e.g. Month 1- if left({ep04680s.PerPost},4)={@Year} and right({ep04680s.PerPost},2)="01" then
|
| select using temp tables | 18 Dec 2008 15:18 GMT | 27 |
I am an application developer, but I am rading some existing stored proc. Some stored proc is used to support search function on web page, so I expected it just complicated select with joins. But I see the inside stroed proc, it create table #temp1, #temp2 and insert
|
| splitting text and updating another table | 18 Dec 2008 15:03 GMT | 1 |
I have a table of records consisting of a single text string that I would either like to be put into separate columns in the same table or update a different table. I have done a 'CREATE table' SQL for the fields but how do I insert the
|
| Backup multi database | 18 Dec 2008 10:34 GMT | 1 |
I have two db in my SQL Server 2005 engine. DB1 and DB2. I have a transaction that work over the two DB. If i start backup of DB1 and DB2 during the transaction, is possible have this scenario: on DB1 the transaction is not committed and when start backup
|
| sys.syscacheobjects | 18 Dec 2008 09:09 GMT | 4 |
after running this command, it shows me the info. like usecounts, objtype, etc. They are somewhat helpful. Is there a way to look at the complied execution plan that SQL Server generated for a specific stored procedure? I don't see it included in the system view.
|
| can I do this in a select query | 18 Dec 2008 09:04 GMT | 4 |
I have a query, where there are two columns (quantity and actualQuantity) which, when there is a problem there will be different values in each. What I need to do, is set a third column to be of the value '1' when the quantity amd actual quantity is different.
|