Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
F

Fang Ming

@Fang Ming
About
Posts
7
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • sql to convert an int to varchar
    F Fang Ming

    Great! thank you very much!

    Database question database tools tutorial

  • Problem in String Compare
    F Fang Ming

    " it will take a significant amount of time if the tables grow" yeah ,that's the truth. i just gived a way to resolve Patel's problem. in general , yours must be the first and best choice.

    Database database help

  • Problem in String Compare
    F Fang Ming

    take it carefuly Patel's table: ProductID CagtegoryID 1 1,2, 2 1, 3 4, 4 2,3, search condition : categoryid=1,2 i transform it to : CagtegoryID %,1,% %,2,% my statement was "select * from [your table ] A where exists (select 1 from @temp B where ','+A.CagtegoryID like B.CagtegoryID )" the "','+" can handle the leading first Cagtegory. and the data in Patel's table "1,2**,",the last ",**" can handle the last one

    Database database help

  • Problem in String Compare
    F Fang Ming

    creat a temporary table declare @temp table ( CagtegoryID varchar(100) ) insert the CagtegoryIDs into this table one by one it will be like CagtegoryID %,1,% %,2,% then try this statement select * from your table [your table ] A where exists (select 1 from @temp B where ','+A.CagtegoryID like B.CagtegoryID

    Database database help

  • retrieving servers list using dmo
    F Fang Ming

    try 1.install the sql server client on the other machine 2.register SQLDMO.DLL to the other machine using regsvr32 command line SQLDMO.DLL locates ~~Program Files\Microsoft SQL Server\80\Tools\Binn you'll have to copy some other dll files in the same folder (i cann't remember exactly) to the other machine before you can register it.

    Database csharp question

  • sql to convert an int to varchar
    F Fang Ming

    ooh. i m sorry i mean how can i convert that to varchar with leading zero: 10 -> 10 0~9 -> '00' ~ '09' and it will be used in a " insert ... select ... from ..." statement. i have a table that containts a datetime column. now i want to transform the data in this to another i have to convert datetime to varchar such as : '2007-09-29 08:05'(datetime) -> '08:05' (varchar) my poor statement is "convert( varchar, datepart( hour , [DateTime] ) ) +':' +convert( varchar, datepart( minute , [DateTime]) ) " but the result is '8:5' what my boss don't want help me. thanks a lot.

    Database question database tools tutorial

  • sql to convert an int to varchar
    F Fang Ming

    newbie's question: how to convert an int to varchar using sql script,such as 1 ->'01' ? thanks

    Database question database tools tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups