Forum Replies Created

Viewing 15 posts - 301 through 315 (of 761 total)

  • RE: error in data type conversion

    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...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] πŸ˜‰

  • RE: Assigning attorneys to paralegals

    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)...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] πŸ˜‰

  • RE: SQL Server Pivot

    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....

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] πŸ˜‰

  • RE: Image upload from Client to server

    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

    How to insert\retrieve image in...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] πŸ˜‰

  • RE: Update membership Records Epiration Date.

    You're Welcome. I'm glad I could help. πŸ™‚

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] πŸ˜‰

  • RE: Image upload from Client to server

    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...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] πŸ˜‰

  • RE: copy data from one table to another.

    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...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] πŸ˜‰

  • RE: Case Condition in the Where Clause

    Kingston Dhasian (6/12/2012)


    I think you are looking for a "Catch-All" query

    Have 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...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] πŸ˜‰

  • RE: SQL Server Pivot

    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...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] πŸ˜‰

  • RE: Image upload from Client to server

    And where is the Image going to be displayed??.....Don't you need a page for that??...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] πŸ˜‰

  • RE: Case Condition in the Where Clause

    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...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] πŸ˜‰

  • RE: Finding the right JOIN type

    Anatoly Ukhvanov (6/11/2012)


    I'm not a pro in this area, but as I understand, Β«Min(Group_Name)» — isn't a the rigth rule that correctly determines which group corresponds to the style. As I...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] πŸ˜‰

  • RE: Update membership Records Epiration Date.

    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...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] πŸ˜‰

  • RE: Finding the right JOIN type

    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) )

    ...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] πŸ˜‰

  • RE: Update membership Records Epiration Date.

    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', ...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] πŸ˜‰

Viewing 15 posts - 301 through 315 (of 761 total)