Viewing 15 posts - 301 through 315 (of 761 total)
What is it that you are converting from Text to BigInt?
Please post the query and the data that you are converting.
A String of alphabets can not be converted to BigINT.
For...
June 14, 2012 at 12:37 am
I tried the Dynamic pivot but it seems that this approach is very lengthy. Still, here is the code:
--Creating Tables
Create Table Employee
(IDint,
First varchar(max),
Last varchar(max),
ext Varchar(max),
Office Char(2)...
June 14, 2012 at 12:34 am
Did you checkout the link in my signature??....If not then please check it out to see how to post Sample Data.
It's good that you have provided DDL of the tables....
June 13, 2012 at 10:22 pm
Go through the following Links. These would give you the necessary information about how to do it:
Storing and Retrieving Images from SQL Server Using Strored Procedures
June 12, 2012 at 4:45 am
You're Welcome. I'm glad I could help. 🙂
June 12, 2012 at 3:14 am
I am guessing that you have already got the images or the path to the images stored in your Database.
In what form do you store them in your Database....as a...
June 12, 2012 at 3:03 am
The following Query should do it for you:
--Creating Tables
CREATE TABLE [dbo].[abcd](
[Aid] [int] IDENTITY(1,1) NOT NULL,
[Title] [varchar](50) NULL
)
CREATE TABLE [dbo].[efg](
[Fid] [int] IDENTITY(1,1) NOT NULL,
[Aid] [int] NULL,
[Title] [varchar](50) NULL
)
--Inserting Sample Data
insert into...
June 12, 2012 at 2:56 am
Kingston Dhasian (6/12/2012)
I think you are looking for a "Catch-All" queryHave a look at the link below which gives some ways to do it
http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
+1.
After listening to all your requirements even...
June 12, 2012 at 1:30 am
Welcome To SSC.
You need to provide DDL of the tables, some sample Data and the Expected Result Set so that people can have a look at what you are looking...
June 12, 2012 at 1:18 am
And where is the Image going to be displayed??.....Don't you need a page for that??...
June 12, 2012 at 12:49 am
A few things:
1. Please test your DDL and Sample Data Scripts before you post it. Its not that hard to do it. Its as simple as CTRL C + CTRL...
June 12, 2012 at 12:43 am
Anatoly Ukhvanov (6/11/2012)
June 11, 2012 at 11:31 pm
Your Sample Data seems inconsistent. Why are there two entries of the same person(Kate Smith) in your table, which completely changes the relationship of the PrimaryId on the MemberId completely...
June 11, 2012 at 11:12 pm
Is this what you are looking for?
--Creating Tables
CREATE TABLE zzxstylr
(division char(3) PRIMARY KEY,
style char(12),
group_code1 char(9),
group_code2 char(9),
group_code3 char(9),
group_code4 char(9),
group_code6 char(9),
group_code7 char(9),
group_code8 char(9) )
...
June 11, 2012 at 10:20 pm
I gave you this solution in your other thread as well.
--Creating Table
Create Table Ex
(Name varchar(20),
MemberID int,
PrimaryID int,
Expiration Date )
--Inserting Sample Data
Insert Into Ex
Select 'Mary Smith', ...
June 11, 2012 at 5:07 am
Viewing 15 posts - 301 through 315 (of 761 total)