sql-server-2008
Convert to valid decimal data type
I have a column [Cash] nvarchar(50) that has data that will later be converted to decimal(9,3) during an import process,some of the data is consistent with normal looking numeric valu开发者_如何学编程[详细]
2023-04-12 11:32 分类:问答How do I rewrite a query to suit a CLUSTERED INDEX?
I just observed that my query: SELECT X.A, X.B, X.GroupName FROM TableA X INNER JOIN TableB Y -- Huge table[详细]
2023-04-12 11:20 分类:问答SQL Server 2008 - date functions and formulas
I want to return results where if the date falls on 10 & 28 of each month, but if either is a weekend return the result for Friday (first working day before).[详细]
2023-04-12 10:50 分类:问答SQL Rowcount always returning 1 on insert into command
All I want to do is set a variable to the count of rows affected by the transaction and send that to a table. I don\'t know why I\'m having trouble, but here is my code[详细]
2023-04-12 10:45 分类:问答Group by Time Span in SQL Server 2008
I have this table structure: ID BIGINT IDENTITY(1,1) deviceID BIGINT NOT NULL, entryTime DATETIME2 NOT NULL,[详细]
2023-04-12 10:41 分类:问答View with NOEXPAND stop expandation
I have a large datab开发者_高级运维ase and for one of the table I want to create a noexpand view, that will filter some of the records from the table - from 10 000 000 records must show only 100 000 b[详细]
2023-04-12 10:38 分类:问答SQL Server Instances
I have a SQL Server 2008 db that is on the MSSQLSERVER instance.I want another user who only has SQL Server 2008 express installed to be able to use an app that accesses that database.[详细]
2023-04-12 10:34 分类:问答Time to archive - SQL Server
I am researching archiving options for our database application (highly normalized schema) and would appreciate expert feedback.We are using Sql Server 2005, but if something works only in 2008 R2 tha[详细]
2023-04-12 10:10 分类:问答Storing single quotes in varchar variable SQL Server 2008
I was wondering if there is a way to store single quote marks in SQL Server 2008.I am building several reports up and all these reports are the exact same, except they only differ in the codes I am se[详细]
2023-04-12 09:45 分类:问答Unable to insert record from stored procedure called from web service
I have the following table: CREATE TABLE [dbo].[omgbbq]( [tbl_key] [int] IDENTITY(1,1) NOT NULL, [name] [varchar](10) NOT NULL,[详细]
2023-04-12 09:44 分类:问答