Viewing 15 posts - 6,826 through 6,840 (of 7,168 total)
Please do not double-post. Direct comments here: http://www.sqlservercentral.com/Forums/Topic1082871-21-1.aspx
March 23, 2011 at 11:59 am
1. In an SSMS query window run this while in Grid Results mode (Ctrl+G):
SELECT CONVERT(XML,'<?xml version="1.0" encoding="UTF-8" ?>
<File>
<Row>
<Column Name="JobID">2010-1022</Column>
<Column Name="Folder">Closed (Filled)</Column>
<Column Name="NumberofOpenings">1</Column>
<Column Name="NumberofOpeningsRemaining">0</Column>
<Column Name="BusinessCardTitle">Director of...
March 23, 2011 at 11:56 am
Not that you won't receive help here but you may want to post this question in one of the Reporting Services forums: http://www.sqlservercentral.com/Forums/Group416.aspx
March 23, 2011 at 11:54 am
SQL Server supports casting strings containing exponential notations to approximate data types:
SELECT CAST('5.01217e+006' AS REAL) AS string_to_real,
CAST('5.01217e+006' AS FLOAT) AS string_to_float
edit:...
March 23, 2011 at 11:12 am
I would recommend handling this kind of thing outside the database...e.g. pull the resultset into a memory-resident data structure (like an ADO.NET DataTable) then remove all columns from the data...
March 23, 2011 at 10:53 am
malleswarareddy_m (3/23/2011)
...i need the child tables type also using this query.It is showing through tabletype then right click view dependencies and it showing child items in tree
nodes.
...
It sounds like maybe...
March 23, 2011 at 10:43 am
May I ask how you ended up with delimited strings in a column? How is this data entering the system? Tools like BCP, BULK INSERT and SSIS are designed to...
March 23, 2011 at 10:23 am
Jeff Moden (3/23/2011)
opc.three (3/22/2011)
In general dynamic sql is a bad idea and you should avoid it...
In general, I disagree. 😀 There are some very easy steps that can...
March 23, 2011 at 8:39 am
belgarion (3/22/2011)
March 22, 2011 at 5:37 pm
sku370870 (3/22/2011)
SELECT [SalesOrderID], [OrderDate], [Status],...
March 22, 2011 at 5:04 pm
Jinx! Diet Coke please Wayne 😎
Just passing along the knowledge...Gail's article is the de facto standard on the topic.
March 22, 2011 at 4:46 pm
In general dynamic sql is a bad idea and you should avoid it...however your example code is building "catch all query". Have a look at this article:
http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/%5B/url%5D
In your case the...
March 22, 2011 at 4:36 pm
BCP was designed to be fast...not tolerant of bad data or feature-rich.
If you have data quality issues then you can ask for better data or cleanse it after you...
March 22, 2011 at 3:42 pm
GSquared (3/22/2011)
March 22, 2011 at 2:29 pm
Try this:
IF OBJECT_ID('test') > 0
DROP TABLE test
GO
CREATE TABLE test (col VARCHAR(20))
GO
INSERT test
(
...
March 22, 2011 at 2:15 pm
Viewing 15 posts - 6,826 through 6,840 (of 7,168 total)