| Thread | Last Post | Replies |
|
| Querying for Service Account Login | 04 Dec 2008 14:45 GMT | 1 |
Anyone know of a way to query the name of the service account SQL is currently running under? I know it's not a smart thing to be doing, and I know I could do it programmatically via windows routes, but I have need within a large test
|
| Connections - Left over | 04 Dec 2008 09:20 GMT | 1 |
How do I make sure no unclosed connection (wich are left over after an application fly) are left in the server with no use?
|
| Query for DateTime field | 04 Dec 2008 08:29 GMT | 11 |
I have a table contains a field that is the type of datetime, and I am getting some unexpected results when I query for the records. For example when I do select tdField from mTable when tdField >= '12/3/2008 14:00:00';
|
| TOP 100 PERCENT - Why? | 04 Dec 2008 07:26 GMT | 5 |
I just found this query in a legacy datase. When, if ever, does "TOP 100 PERCENT" ever make sense? Why do it? SELECT TOP 100 PERCENT LastName FROM (
|
| INNER JOIN sequence make any difference? | 04 Dec 2008 03:32 GMT | 8 |
Is this:SELECT * FROM employee INNER JOIN department ON employee.DepartmentID = department.DepartmentID
|
| Last day of previous month | 03 Dec 2008 23:58 GMT | 7 |
[SQL2000] CREATE TABLE [dbo].[tbl_FGSIZE] ( [ID] [int] IDENTITY(1,1) NOT NULL,
|
| I need to add an addtional table\field to this Stored Procedure... | 03 Dec 2008 23:49 GMT | 1 |
This is a Stored Procedure I've inherited I have two lines that I've added in each of the SELECT sections below. They end in "-- I need this additional data" What I don't know how to do is add a join to an additional table.
|
| The precision is invalid | 03 Dec 2008 23:17 GMT | 4 |
help, I'm trying to access a stored procedure The stored procedure works fine when run from the server) the code is below - CREATE PROCEDURE updatepricing @siteid INT,
|
| Sort data from Horizontal to Vertical ? | 03 Dec 2008 22:58 GMT | 2 |
How can I sort the following data from Horizontal to Vertical using MS SQL ? Table : Sample From Horizontal Type Value
|
| Delete trigger not firing, or variable not getting set? | 03 Dec 2008 22:30 GMT | 6 |
The trigger below is supposed to Test a sproc when a tblTestItem record is deleted. Either the trigger does not fire, or the @TestID variable is not set to the deleted record's value in TestItemTestID. I am not able to get the print statement to work inside the trigger so I can't ...
|
| Finding unoccupied / occupied rooms using date functions? | 03 Dec 2008 21:55 GMT | 4 |
I have a few tables represent hotel, hotel room, guest and room booking respectively. Among two tables are as below: Room table
|
| SQL Query for the DateTime Field | 03 Dec 2008 18:36 GMT | 5 |
I have a table contains a datetime field, which stores only time information, now 1. I have noticed that the time value saved in the table all have a date stamp at the beginning of them, for example
|
| Return one row on JOIN when many rows match | 03 Dec 2008 16:35 GMT | 3 |
I'm stuck two tables which were poorly designed from the beginning - a Message table and an Employee table. The Message table has an EmployeeID and the message text. The Employee table has the EmployeeID, the employee name, and an employee code. The problem is
|
| dateadd and conversion | 03 Dec 2008 14:10 GMT | 3 |
My db has a char(10) with a date stored like yyyy-mm-dd I need to add a number of days ad output as char(10) stored as mm/dd/yyyy. The 2nd part works fine with dateadd(d,ChangeOfDay,DepartureDate),
|
| Quorom Drive Corruption | 03 Dec 2008 12:00 GMT | 1 |
Has anyone dealt with corruption of the Quorom drive on a SQl 2005 cluster? Is this common? If so how can I assure my manager a plan if this does happen so we dont lose data. TIA
|