sql-server-2005

T-SQL - string concatenation

筅森魡賤 提交于 2021-02-20 18:54:40
问题 Hope someone can help - I am a novice SQL hacker (and very bad at it indeed!) I have two tables on SQL Server 2005 TABLE 1 and TABLE2: TABLE1 COL1 COL2 1 10 2 20 3 30 4 10 4 20 5 20 6 30 7 10 7 20 TABLE2 COL1 COL2 10 A 20 B 30 C COL2 in TABLE2 is a character representation of the numerical data in COL2 TABLE1. I hope this is understandable? I have worked out how to select COL1 and COL2 from TABLE1 and concatenate the results to show this: COL1 COL2Concat 1 10 2 20 3 30 4 10, 20 5 20 6 30 7 10

T-SQL - string concatenation

混江龙づ霸主 提交于 2021-02-20 18:53:50
问题 Hope someone can help - I am a novice SQL hacker (and very bad at it indeed!) I have two tables on SQL Server 2005 TABLE 1 and TABLE2: TABLE1 COL1 COL2 1 10 2 20 3 30 4 10 4 20 5 20 6 30 7 10 7 20 TABLE2 COL1 COL2 10 A 20 B 30 C COL2 in TABLE2 is a character representation of the numerical data in COL2 TABLE1. I hope this is understandable? I have worked out how to select COL1 and COL2 from TABLE1 and concatenate the results to show this: COL1 COL2Concat 1 10 2 20 3 30 4 10, 20 5 20 6 30 7 10

Disabling SSIS Package Validation when Loading a Package in the VS Designer

╄→гoц情女王★ 提交于 2021-02-18 09:02:46
问题 I have a few SSIS packages that are deployed to a SQL 2005 Server and are subsequently designed and maintained in Visual Studio 2003. When I open any of the BIDS projects, followed by one of the packages, the designer always validates every Data Flow and Task object. Usually, this isn't a problem. However, under certain circumstances a system account that we use for connecting and export data from an AS400 will not validate properly. Since I'm exporting a TON of tables, each Data Flow object

Multiple Chart Series in chart control

北战南征 提交于 2021-02-11 15:46:40
问题 I am a novice programmer using ms chart control for my dashboard, I have a problem displaying chart series. Here is my sample query & result Sample Query: "SELECT Brand, sales, Manufacturer From TABLE" Sample Result: BRAND SALES MANUFACTURER Row 1 BrandA 10000 MfgA Row 2 BrandY 7000 MfgY Row 3 BrandZ 12000 MfgZ How can I display BrandA for XValueMember & Salesvalue(10000) for YValueMembers as Series1 having a column chart type. And to display BrandY & BrandZ for XValueMember ; Salesvalue for

Multiple Chart Series in chart control

天涯浪子 提交于 2021-02-11 15:46:27
问题 I am a novice programmer using ms chart control for my dashboard, I have a problem displaying chart series. Here is my sample query & result Sample Query: "SELECT Brand, sales, Manufacturer From TABLE" Sample Result: BRAND SALES MANUFACTURER Row 1 BrandA 10000 MfgA Row 2 BrandY 7000 MfgY Row 3 BrandZ 12000 MfgZ How can I display BrandA for XValueMember & Salesvalue(10000) for YValueMembers as Series1 having a column chart type. And to display BrandY & BrandZ for XValueMember ; Salesvalue for

Replacing a string using SQL Server Replace function - string has more than 4000 characters - what to do?

感情迁移 提交于 2021-02-10 13:45:12
问题 I have a table, where I need to replace some values in a column. The database is running on SQL Server 2005. The problem is that some of the rows contain more than 4000 characters, which is giving the REPLACE function some trouble, since it demands that I cast the first parameter to the datatype NVARCHAR , and therefore any characters exceeding 4000, is being truncated. Is there any workaround for this, other than writing an application that handles this issue? The query in question is:

Temp Table unique across multiple requests on the same connection pool?

眉间皱痕 提交于 2021-02-10 08:48:08
问题 I have the following stored proc which uses a temp table to bulk import the data. I understand the temp tables are unique for every session, however i'm wondering if my application uses threads and makes multiple concurrent request to the stored proc, using the same sql connection from the application pool, will they end up referencing the same temp table? CREATE PROCEDURE [dbo].[Mytestproc] AS BEGIN BEGIN TRANSACTION CREATE TABLE #Hold ( ID INT, VAL NVARCHAR(255) ) BULK INSERT #Hold FROM 'C:

Temp Table unique across multiple requests on the same connection pool?

时光怂恿深爱的人放手 提交于 2021-02-10 08:48:08
问题 I have the following stored proc which uses a temp table to bulk import the data. I understand the temp tables are unique for every session, however i'm wondering if my application uses threads and makes multiple concurrent request to the stored proc, using the same sql connection from the application pool, will they end up referencing the same temp table? CREATE PROCEDURE [dbo].[Mytestproc] AS BEGIN BEGIN TRANSACTION CREATE TABLE #Hold ( ID INT, VAL NVARCHAR(255) ) BULK INSERT #Hold FROM 'C:

com/microsoft/sqlserver/jdbc/SQLServerDriver has been compiled by a more recent version of the Java Runtime

折月煮酒 提交于 2021-02-10 06:23:15
问题 I has db in MS SQL Server 2005 I has java project write on java 8 . My project is on Windows 7 Professional's machine (64 bit) . I use this jar: sqljdbc4.jar to connect to MS SQL Server 2005 . But when I start my app I get error: [java] log4j: setFile ended [java] log4j: Appender [File] to be rolled at midnight. [java] log4j: Adding appender named [File] to category [root]. [java] [25.05.2019 15:11:44.979] com.myproject.common.LNFSetter.setLNF(LNFSetter.java:60) TRACE: [java] lookAndFeelName

com/microsoft/sqlserver/jdbc/SQLServerDriver has been compiled by a more recent version of the Java Runtime

风格不统一 提交于 2021-02-10 06:23:07
问题 I has db in MS SQL Server 2005 I has java project write on java 8 . My project is on Windows 7 Professional's machine (64 bit) . I use this jar: sqljdbc4.jar to connect to MS SQL Server 2005 . But when I start my app I get error: [java] log4j: setFile ended [java] log4j: Appender [File] to be rolled at midnight. [java] log4j: Adding appender named [File] to category [root]. [java] [25.05.2019 15:11:44.979] com.myproject.common.LNFSetter.setLNF(LNFSetter.java:60) TRACE: [java] lookAndFeelName