.NET Framework :: Generating PDF Letters From Server

Jul 9, 2015

Generating different types of letter (PDF formats) from SQL server?

View 3 Replies


ADVERTISEMENT

Generating Letters In SSRS

Aug 21, 2007

Hi. I'm looking for tutorials on how to use SSRS 2005 to generate letters in Word or PDF format from a database. We need to send letters with our company logo and some boilerplate text to a set of companies based on a SQL Server query. So the letter will look something like this, with the red areas repeating from the dataset,


[logo goes here]

123 Any St.
AnyCity, CA 90210

[today's date]

Dear [name from database],

Some boilerplate text goes here. Your Account [account number from database] is past due.


Sincerely,

[scanned signature goes here]

Somebody

View 2 Replies View Related

Framework 3.0 In OS, Need Framework 2.0 For SQL Server 2005

Sep 22, 2007

Hi,

Can anybody help me with the following problem:

I have Vista Ultimate installed and within Vista .NET Framework 3.0 is installed as a part of the operating system so I can't remove 3.0
Now for MS SQL Server 2005 Express I need .NET Framework 2.0 and the SQL Server 2005 doesn't work with .NET Framework 3.0
Can't install 2.0, get the message that 3.0 is already installed.
Please help me!!

René

View 5 Replies View Related

SQL Server 2012 :: Parse A String Every 6 Letters

Jan 28, 2015

How to parse a string to equal length substrings in SQL

I am getting a long concatenated string from a query (CTVALUE1) and have to use the string in where clause by parsing every 6 characters..

CREATE TABLE [dbo].[PTEMP](
[ID] [char](10) NULL,
[name] [char](10) NULL,
[CTVALUE1] [char](80) NULL
)

INSERT INTO PTEMP
VALUES('11','ABC','0000010T00010L0001000T010C0001')
select * from ptemp

After parsing I have to use these values in a where clause like this

IN('000001','0T0001','0L0001','000T01','0C0001')

Now ,the values can change I mean the string may give 5 values(6 character) today and 10 tomorrow.. So the parsing should be dynamic.

View 2 Replies View Related

SQL Server 2012 :: Removing Character (Letters Only) From A String

Dec 19, 2014

I need to build a query, or use a function to removing alfabetic Character from a string.

My string is
WI14000323-0003

The value i want to keep is : 14000323-0003.

I try using this SELECT:

SELECT STUFF(Upper(z.lote), PATINDEX('%[A-Z]%', Upper(z.lote)), 2, '') from mytable

but in this case i have only 2 letters WI, but in the future i dont know if is only 2 letters, 1 letter or more, then is not what i pretend.

View 2 Replies View Related

SQL Server And .Net Framework

Apr 4, 2007

We have SQL Server 2000 on a machine that also runs our BlackBerry server. The machine has the .Net framework v. 1.1 upgraded to 2.0. BlackBerry tells us it must have all versions of the framework uninstalled and only v. 1.1 reinstalled for certain elements to function properly.



Will this affect SQL Server at all? If so, how can we accomplish the reinstall safely?



Thanks

View 4 Replies View Related

SQL Server 2005 && .NET Framework 1.1

Nov 21, 2007

I have Visual studio 2003 with .NET Framework 1.1 installed on it. I need to interface it with SQL Server 2005. But SQL server 2005 installs .NET Framework 2.0. And Visual Studio .NET 2003 cannot use the .NET Framework 2.0 assemblies.

So I need help on whether I can interface visual studio 2003 with .NET Framework 1.1 with SQL Server 2005 ?

View 1 Replies View Related

SQL Server 2005 And .net Framework 3.5

Jan 7, 2008

Is it possible to use the visual studio 2008 to create SQL server SP having .net framwork 3.5 to run on SQL Server 2005?

View 21 Replies View Related

.Net Framework 2.0 And Sql Server 2005

Jul 3, 2006

Does anyone know if there are any issues with .Net Framework 2.0 and SQL Server 2005?

Here is my problem .....

I have a web application running on a Windows 2003 Server SE with IIS 6.0. We recently migrated all of our databases to SQL Server 2005 and now we are getting an exception when retrieving data from the DB (Exception Below). We have switched our databases back to Sql Server 2000 and the problem does not occur. Any Help would be much appreciated.

-Ryan

Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 5000
Date: 7/3/2006
Time: 10:15:46 AM
User: N/A
Computer: WEBSERVER12
Description:
EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.1830, P3 42435be1, P4 system.data, P5 2.0.0.0, P6 4333aea2, P7 1946, P8 25, P9 system.invalidoperationexception, P10 NIL.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 63 00 6c 00 72 00 32 00 c.l.r.2.
0008: 30 00 72 00 33 00 2c 00 0.r.3.,.
0010: 20 00 77 00 33 00 77 00 .w.3.w.
0018: 70 00 2e 00 65 00 78 00 p...e.x.
0020: 65 00 2c 00 20 00 36 00 e.,. .6.
0028: 2e 00 30 00 2e 00 33 00 ..0...3.
0030: 37 00 39 00 30 00 2e 00 7.9.0...
0038: 31 00 38 00 33 00 30 00 1.8.3.0.
0040: 2c 00 20 00 34 00 32 00 ,. .4.2.
0048: 34 00 33 00 35 00 62 00 4.3.5.b.
0050: 65 00 31 00 2c 00 20 00 e.1.,. .
0058: 73 00 79 00 73 00 74 00 s.y.s.t.
0060: 65 00 6d 00 2e 00 64 00 e.m...d.
0068: 61 00 74 00 61 00 2c 00 a.t.a.,.
0070: 20 00 32 00 2e 00 30 00 .2...0.
0078: 2e 00 30 00 2e 00 30 00 ..0...0.
0080: 2c 00 20 00 34 00 33 00 ,. .4.3.
0088: 33 00 33 00 61 00 65 00 3.3.a.e.
0090: 61 00 32 00 2c 00 20 00 a.2.,. .
0098: 31 00 39 00 34 00 36 00 1.9.4.6.
00a0: 2c 00 20 00 32 00 35 00 ,. .2.5.
00a8: 2c 00 20 00 73 00 79 00 ,. .s.y.
00b0: 73 00 74 00 65 00 6d 00 s.t.e.m.
00b8: 2e 00 69 00 6e 00 76 00 ..i.n.v.
00c0: 61 00 6c 00 69 00 64 00 a.l.i.d.
00c8: 6f 00 70 00 65 00 72 00 o.p.e.r.
00d0: 61 00 74 00 69 00 6f 00 a.t.i.o.
00d8: 6e 00 65 00 78 00 63 00 n.e.x.c.
00e0: 65 00 70 00 74 00 69 00 e.p.t.i.
00e8: 6f 00 6e 00 20 00 4e 00 o.n. .N.
00f0: 49 00 4c 00 0d 00 0a 00 I.L.....

View 3 Replies View Related

.NET Framework 1.1 And SQL Server Express 2005?

Jul 8, 2006

Hi

I am running VS.NET 2003 on my computer and wish to try to install the *free* SQL server express 2005 .

The problem is I can't install SQL express as it asks me to install .NET framework 2.0 first.

I wonder if I do so, will I be able to work with VS.NET 2003?

Thanks,

View 1 Replies View Related

Migrating MS-SQL Server 2000 To MS-SQL Server 2005 For Web Application On .Net Framework 1.1

Aug 10, 2006

Hello,

I have to do an impact analysis for migrating a .Net web based application. The current and desired scenarios are mentioned below.

The current environment:

OS - Windows 2000, SP4

Framework - .Net 1.1

SQL Server - MSSQL Server 2000

Desired Environment:

OS - Windows 2003, SP1 / Windows 2003 R2

Framework - .Net 1.1

SQL Server - MSSQL Server 2005

Please let me know

1. If any changes need to be done in the application when migrating the database from 2000 to 2005?

2. Any relevant document which will help me in the same.

Regards, Venkat





View 1 Replies View Related

SQL Server 2005 Express Edition With .NET Framework 1.0 ?

Sep 17, 2007

Hi all. I am using Microsoft Visual Basic .Net 2002 with .NET Framework 1.0. I want to install free SQL Server database. I want to install SQL Server 2005 Express Edition but it requires .NET Framework 2.0. If I installed MSDE 2000, it doesnt have that Enterprise Manager.So, how is this possible for me to use the free SQL Server with that Enterprise Manager ? Thanks in advance. 

View 4 Replies View Related

SQL Server 2014 :: Entity Framework And Infinity

Feb 19, 2015

Working in a project using Entity Framework (Code First)...

Until now the project has been connected to a (generated) SQL Server Compact 4.0 database,

but now we want to connect to a SQL Server (at least 2008R2 since we will use FILESTREAM...)

Our problem right now is the possibility to enter Infinity values into REAL columns in the DB...

It works in the SQL Server Compact but we have not been able to get it to work in 2008R2 or 2014

The insertion of Infinity values is constructed by the Entity Framework (from using float.PositiveInfinity in C#) automatically so I mainly wonder if it at all is possible in a "real" database. Maybe there are some configurations possible to get it to work?

View 5 Replies View Related

Error 87 Installing .NET Framework 2.0 SQL Server Installation

Dec 1, 2007



I confirm, You ca resolve this problem if use a good copy of dotnefx.exe package.
You can find this here:

http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5

Nino Crudele
blog; http://blogs.ugidotnet.org/Biztalk

View 1 Replies View Related

Installing .Net Framework For SQL Server 2008 Express

Apr 25, 2008

Please make this sticky or put it into the faq:
Note: Using Windows Vista Ultimate
SQL Server 2008 Express Edition download page says in big letters, "You Must Install .Net Framework 2.0." The link provided to .Net framework -- framework/ take me to a page that only lists .Net Framework 3.0, with a notice that 3.5 redistributable has been released. What is the correct version of .Net Framework to install SQL Server 2008 Express Edition - 2.0, 3.0, 3.0 + 3.5, or just 3.5?

View 5 Replies View Related

SQL Server 2014 :: CLR Function And NET Framework Return Different Results

Nov 1, 2014

I have rather simple CLR function:

[SqlFunction(IsDeterministic = true, DataAccess = DataAccessKind.None)]
public static SqlString GetUserName()
{
return (SqlString)WindowsIdentity.GetCurrent().Name;
}

When I get result from .NET console app, I get correct answer "JungleSektor". However, when SQL Server executes this code, it gives me "NT ServiceMSSQL $ SQL2014". How to get correct result?

View 1 Replies View Related

.NET Framework :: Could Not Connect To Server - Login Failed For User

Jul 20, 2015

I am trying to create a CLR project in my Visual Studio 2010 with SQL Server 2012. I can build my empty project succesfully, but if I try to deploy it, I get such an error...Beginning deployment of assembly SimpleCLRIntegrationNew.dll to server xxxxxxxxx : di_test

C:Program Files (x86)MSBuildMicrosoftVisualStudiov10.0TeamDataMicrosoft.Data.Schema.SqlClr.targets(96,5): error : Could not connect to server "xxxxxxxxxx: di_test": Login failed for user 'di_test'..

View 2 Replies View Related

SQL Server 2005 Express Doesn't Work With .NET Framework 3.0

Sep 22, 2007

Hi,

Can anybody help me with the following problem:

I have Vista Ultimate installed and within Vista .NET Framework 3.0 is installed as a part of the operating system so I can't remove 3.0
Now for MS SQL Server 2005 Express I need .NET Framework 2.0 and the SQL Server 2005 doesn't work with .NET Framework 3.0
Can't install 2.0, get the message that 3.0 is already installed.
Is there another version of SQL Server that works with .NET Framework 3.0 and runs under Vista Ultimate?
Please help me!!

René

View 3 Replies View Related

Cannot Connect To A Named Instance Of SQL Server From Compact Framework 2.0

Mar 14, 2008

I have two instances of SQL Server on the same PC:

Default instance: SQL Server 2000
Named instance with name €œMS2005€?: SQL Server 2005.
Also I have another SQL Server 2005 on another PC.

I created a .NET 2.0 Compact Framework application that connects to the database and executes simple query. This application can connect to any instance of the SQL Server when it is executed on the PC (not on the server). But the problem is that when I try to execute the application from the windows CE 5.0 device, the application can only connect to the default instance (SQL 2000 and 2005) and can not connect to the named instance (Name: MS2005).
Is it some kind of limitation of the SqlClient library for the compact framework?

Below are the code and connection strings:

string connectionString = €œServer=1.1.1.1;Database=DB1;Uid=sa;Pwd=€?
string connectionString = €œServer=1.1.1.1\MS2005;Database=DB1;Uid=sa;Pwd=€?

using (SqlConnection connection = new SqlConnection(connectionString))
{
connection.Open(); //This is the point where exception is generated

using (SqlCommand command = connection.CreateCommand())
{
command.CommandText = "select count(*) from users";
object result = command.ExecuteScalar();

Console.WriteLine("Result: [{0}]", result);
}

connection.Close();
}


Thank you for your time and advice.

View 7 Replies View Related

.NET Framework :: Insert Results Of All Processes On A Server Into A Table

Oct 28, 2015

How the code inserted works.....I am trying to do the same thing with

GetProcesses

So I want to insert into a table the results of all the processes on a server and determine if a process/service is running.......

using System;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;
using System.IO;
using System.Collections;

[Code] .....

View 8 Replies View Related

Developing Microsoft SQL Server CE 2.0 Merge Replication Using .NET Compact Framework

Aug 13, 2007

We are developing Microsoft SQL Server CE 2.0 Merge Replication Using .NET Compact Framework. There is need of sinhronizations between SQL 2005 Mobile Edition witch resides on Barcode terminal (Windows CE) and SQL 2005 Developer Edition (on Windows XP). Everything is done by the book. There is few lines of code that we are using:
public bool Replicate()
{ bool ret = true;
SqlCeReplication repl = null;
try {
// Instantiate and configure
SqlCeReplication object repl = new SqlCeReplication();
string dbFile = ........
repl.InternetUrl = this.InternetUrl;
repl.InternetLogin = this.InternetLogin;
repl.InternetPassword = this.InternetPassword;
repl.Publisher = this.Publisher;
repl.PublisherDatabase = this.PublisherDatabase;
repl.PublisherLogin = this.PublisherLogin;
repl.PublisherPassword = this.PublisherPassword;
repl.Publication = this.Publication;
repl.Subscriber = this.Subscriber;
repl.SubscriberConnectionString ="Data Source=" +dbFile;
if (!System.IO.File.Exists(dbFile))
{ repl.AddSubscription(AddOption.CreateDatabase);
}
repl.Synchronize();
}
IIS is configured, but in log on the server we've got this error:
2007/08/09 15:33:02 Hr=80004005 ACK:Error for DistributorSessionID = 58 2007/08/09 15:33:02 Hr=80004005 The SQL statement failed to execute. [,,,SQL statement,,] 28560 Please give us posible solution of this problem, we have searched on forums but with no result. p.s. I'ts urgent

View 3 Replies View Related

Sql Server 2005 A Fatal Error Occurred In .NET Framework Runtime

Oct 15, 2007

We've deployed an assembly to a new production sql server 2005 instance, and have been having periodic restarts of sql server. The sql server service appears to be stopping and restarting on it's own since the assembly was deployed.

We've narrowed it down to a decryption method. We haven't been able to produce the issue on a consistant basis. Even if we put a ton of load on the stored procedure calls.

The error is below we receive (I cut out some, so it would fit in the thread), we also have mdmp files, that I've attempted to debug with Visual Studio 2005 and Windbg with no success. I have all the symbols (I'm pretty sure), but I don't have much experience with WinDbg, so it's been slow going.

Here's a little about the environment.

Windows Server 2003 Enterprise x64 SP2
Microsoft SQL Server version 9.00.3042.00 SP2
16 MB physical memory
Quad 3.2 GHz Xeon
3 sets of raid drives.
c: OS
e: sql data
e: sql logs
All Sql and windows patches are up to date.

Only thing I can figure is this is something to do with the .NET libraries. When the assembly was compiled it was set to compile for any CPU. We even tried compiling on the 64 bit OS with no luck still.

If anyone has had a similar issue, it would be most helpful, thanks,
Byron


---------------------------------------------------------------
Memory
MemoryLoad = 9%
Total Physical = 16382 MB
Available Physical = 14760 MB
Total Page File = 32159 MB
Available Page File = 30633 MB
Total Virtual = 8388607 MB
Available Virtual = 8365517 MB
**Dump thread - spid = 56, PSS = 0x0000000092BDFE90, EC = 0x0000000092BDFEA0
***Stack Dump being sent to C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLLOGSQLDump0067.txt
* *******************************************************************************
*
* BEGIN STACK DUMP:
* 10/14/07 15:49:11 spid 56
*
* A fatal error occurred in .NET Framework runtime.
*
* Input Buffer 62 bytes -
* u t i l s . d b 17 00 75 00 74 00 69 00 6c 00 73 00 2e 00 64 00 62 00
* o . d e c r y p t 6f 00 2e 00 64 00 65 00 63 00 72 00 79 00 70 00 74 00
* B a s e 6 4 §@ 42 00 61 00 73 00 65 00 36 00 34 00 00 00 00 01 a7 40
* Ã? 4 1f 09 04 d0 00 34 00 00
*
*
*
* -------------------------------------------------------------------------------
* Short Stack Dump
0000000077D67D8D Module(kernel32+0000000000027D8D)
0000000001D345DE Module(sqlservr+0000000000D345DE)
0000000001D3F3A9 Module(sqlservr+0000000000D3F3A9)
0000000002156D83 Module(sqlservr+0000000001156D83)
00000000021571C2 Module(sqlservr+00000000011571C2)
000006427F8F5FFD Module(mscorwks+00000000005C5FFD)
000006427FA4855B Module(mscorwks+000000000071855B)
000006427F888C4B Module(mscorwks+0000000000558C4B)
000006427F5D51C8 Module(mscorwks+00000000002A51C8)
000006427F5D5113 Module(mscorwks+00000000002A5113)
000006427F453A5A Module(mscorwks+0000000000123A5A)
0000000077F251EC Module(ntdll+00000000000651EC)
0000000077EE5F36 Module(ntdll+0000000000025F36)
0000000077EF31DD Module(ntdll+00000000000331DD)
000006427FA5089B Module(mscorwks+000000000072089B)
000006427806C7F8 Module(mscorlib.ni+000000000006C7F8)
000006427806B564 Module(mscorlib.ni+000000000006B564)
000006428029CBB7 Module(UNKNOWN+0000000000000000)
00000642788A6088 Module(mscorlib.ni+00000000008A6088)
000000000818E8F0 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
000000000818E7D0 Module(UNKNOWN+0000000000000000)
000000000818E090 Module(UNKNOWN+0000000000000000)
00000005010A5F40 Module(UNKNOWN+0000000000000000)
00000005010A5F60 Module(UNKNOWN+0000000000000000)
00000005010A5F90 Module(UNKNOWN+0000000000000000)
00000005010A5FC0 Module(UNKNOWN+0000000000000000)
00000005010A5FD8 Module(UNKNOWN+0000000000000000)
00000005010A6020 Module(UNKNOWN+0000000000000000)
00000005010A63B0 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
0000000000000019 Module(UNKNOWN+0000000000000000)
00000000841EC050 Module(UNKNOWN+0000000000000000)
00000005010A5F40 Module(UNKNOWN+0000000000000000)
00000005010A5F60 Module(UNKNOWN+0000000000000000)
00000005010A5F90 Module(UNKNOWN+0000000000000000)
00000005010A5FC0 Module(UNKNOWN+0000000000000000)
00000005010A5FD8 Module(UNKNOWN+0000000000000000)
00000005010A6020 Module(UNKNOWN+0000000000000000)
00000005010A6020 Module(UNKNOWN+0000000000000000)
00000005010A6180 Module(UNKNOWN+0000000000000000)
00000005010A63B0 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
0000001900000409 Module(UNKNOWN+0000000000000000)
0000000000000001 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
000000000818E7D0 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
000000000818E200 Module(UNKNOWN+0000000000000000)
000000000818E200 Module(UNKNOWN+0000000000000000)
0000064280400218 Module(UNKNOWN+0000000000000000)
000000000818E250 Module(UNKNOWN+0000000000000000)
000000000818E230 Module(UNKNOWN+0000000000000000)
FFFFFFFFFFFFFFFE Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
0000000001C52423 Module(sqlservr+0000000000C52423)
0000000000000001 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
00000005010A5F40 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
0000001900000409 Module(UNKNOWN+0000000000000000)
0000000000000001 Module(UNKNOWN+0000000000000000)
0000000000000000 Module(UNKNOWN+0000000000000000)
000000000818E340 Module(UNKNOWN+0000000000000000)
0000000080D262B0 Module(UNKNOWN+0000000000000000)
000006428029C31E Module(UNKNOWN+0000000000000000)
0000000000000004 Module(UNKNOWN+0000000000000000)
000006427F5B3B52 Module(mscorwks+0000000000283B52)
-----------------------

View 1 Replies View Related

.NET Framework :: Restoring 2008 Database To 2012 Server With CLR Assembly

Jul 6, 2015

I have a database with deployed CLR assembly on SQL 2008. I recently took a backup for the database and restored it on SQL 2012 server. Everything worked fine except very strange working of CLR assemblies functions.The result of the function is very odd. It manipulates the numeric string and return the result. It is returning very strange result on SQL 2012 as compared to SQL 2008.Example SQL 2008 ManipulateString('1234') returns 2345 On SQL 2012 the same call returns 1155.I am also trying to deploy the same assembly to SQL 2012 server database. I have successfully register the assembly, but the database do not list the exposed methods.

View 5 Replies View Related

.NET Framework :: Error In Creating CLR Functions Saying Server Is Information Protection Configured

Aug 17, 2011

We have few C# binaries that contains definition of CLR functions, and one stored procedure to install / create them in our database. Recently when dropping and recreating the CLR function using our stored procedure, it failed with below error:

Error/info returned: [Microsoft][ODBC SQL Server Driver][SQL Server]This server is Information Protection configured. Only the sql server web application can be used for this function. ([URL])[Microsoft][ODBC SQL Server Driver][SQL Server]The transaction ended in the trigger. The batch has been aborted.

Basically our stored procedure has standard steps to create asymmetric key for each of our C# binary and create login for that key and then grant unsafe assembly permissions to those logins.

It sets show advanced options, clr enabled, and ole automation procedures options. It then using create assembly (for each c# binary with permission_set = unsafe) and create function constructs to create clr functions in SQL server.

View 2 Replies View Related

CAPITAL LETTERS

Sep 6, 2007

Any option on sql server to have the reserved words converted into CAPITAL when I type it in. Like "SELECT"

=============================
http://www.sqlserverstudy.com

View 8 Replies View Related

Group Everything With The Same First Two Letters

Aug 17, 2007



I'm working on a stored procedure that works fine. I just want to make it possible for the user to be able to have a drop down list in reporting services to display the "question codes" grouped by whatever the first two digits are. for example.

VT01
VT02
VT03
VN01
VN02
VN03
ST01
ST02
ST03

instead of listing everything, i want the viewers to see this
VT
VN
ST
or an alias for each of these like this:

Vet Tasks
Vet National
Survey Tasks
Survey National

any ideas, here's my current code, which is pullin up anything with the added substring part




Code Snippet
ALTER PROCEDURE [dbo].[Testing_Questions]
(@Region_Key int=null,@QuestionCode char(5))
AS
BEGIN

SELECT dbo.Qry_Questions.Territory,
dbo.Qry_Questions.SalesResponsible,
dbo.Qry_Questions.Customer,
dbo.Qry_Questions.Date,
dbo.Qry_Questions.StoreName,
dbo.Qry_Questions.PostCode,
dbo.Qry_Questions.Address2,
dbo.Qry_Questions.[Question Code],
dbo.Qry_Questions.Question,
dbo.Qry_Questions.[Response Type],
dbo.Qry_Questions.response,
dbo.Qry_Questions.sales_person_code,
dbo.Qry_Sales_Group.Region_Key,
dbo.Qry_Sales_Group.Region
FROM dbo.Qry_Questions
INNER JOIN dbo.Qry_Sales_Group
ON dbo.Qry_Questions.sales_person_code COLLATE SQL_Latin1_General_CP1_CI_AS = dbo.Qry_Sales_Group.SalesPerson_Purchaser_Code
WHERE REGION_KEY=@Region_Key
AND SUBSTRING(dbo.Qry_Questions.[Question Code],0,3)=@QuestionCode

END
SET NOCOUNT OFF

View 1 Replies View Related

WHERE Includes All Letters

Apr 18, 2006

Hi

I would like to perform a procedure
which takes a string of numbers and searches for strings in a table which include all the
given numbers in any particular order. problem is i can only return strings
which include 'any' of the letters in the search string and not
'all'.

this is how i perform it so far:

@IncludeNumbers
VARCHAR(50)

AS
BEGIN

SELECT Phone AS [Telephone
Number]

FROM tbl_Person AS p

WHERE (p.Phone LIKE '%[' +
@IncludeNumbers + ']%')

END

(ive removed some unecessary bits but
this shows the basics)

As you can see currently it will return any phone numbers which contain any numbers given in the includeNumbers string, I would only like it to return phone numbers which contain all the numbers given in the includeNumbers string. is there any way to make it search for strings
which include 'all' numbers given?

thanks

Robert

View 7 Replies View Related

Query Column With Letters

Sep 22, 2004

I have a database with a zip code column. I want to flag all rows that have letters in that column (a-z). How could I construct the where clause?

Is there a better alternative to:
WHERE ZipCode LIKE '%a%' OR ZipCode LIKE '%b%' ...

View 5 Replies View Related

Drive Letters And MDF/LDF Files...

Apr 18, 2007

All,

I'm writing to ask if anyone knows whether or not MS SQL server stores in any system tables the association between a database and the drive letter/directory path where its corresponding MDF/LDF files are located.

Thanks,

Isaac

View 4 Replies View Related

Changing Drive Letters

Oct 9, 2007

All,

I have a test server that needs the drive letters changed for the data, log and backup drives. Is there a way to make this change without reinstalling SQL Server?


Future guru in the making.

View 13 Replies View Related

Dynamic Form Letters

Aug 6, 2006

I would like to design a 'mail merge' type of letter, whereby some of the paragraphs will be conditional on parameters. Can anyone direct me to example of mail merger letters using reporting services?

thanks

ken

View 1 Replies View Related

How To Apply Capital Letters But Only The First One?

Nov 20, 2007

Hi everyone,

As source on a Sql25k table I've got this (often):

XXXXX ZZZZZZZ YYYYYYYY


And, as a result I'd need this (plain file):

Xxxxx Zzzzzz Yyyyy

Ok guys, with VbScript inside a DTS it's very easy, building a loop and then playing with Ucase, Left functions stuff and so on...

How could I do this using a DTSX package?? Any specialized task?

Thanks indeed for your help,

View 29 Replies View Related

Failed To Find Or Load The Registered .Net Framework Data Provider When Using SQL Server Compact Edition

Jul 3, 2007

Hello



I have recently downloaded Orcas beta VS product and had no previous version of VS before. The install went clean and I have been able to generate Window apps and web apps with very little issues; however, I have one issue with running a web app using the "view in browser" option for checking an aspx page for validity. If I use the default Northwind database provided and generate an aspx form using the "DataSet" toolbox widget, the tool prompts for the datasource etc. required to generate the required code. I can select the Northwind database and select the desired columns from one of the tables. Once completed, I build the project (clean build) and then select the "view in browser" option to verify the results. The result is an error page indicating a server error ->
Failed to find or load the registered .Net Framework Data Provider.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Configuration.ConfigurationErrorsException: Failed to find or load the registered .Net Framework Data Provider.



I created on odbc connection to an iSeries(as400) box and was successfull in displaying the table on the webpage! I looked into the web.config file and it appears that all the required XML data is present. Any help would be appreciated as I am fairly green when it comes the .NET world.



Thanks

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved