Skip to content

Database

Discussions on database access, SQL, and ADO

This category can be followed from the open social web via the handle database@forum.codeproject.com

17.1k Topics 61.8k Posts
  • SELECT * INTO OPENDATASOURCE

    database help
    2
    0 Votes
    2 Posts
    0 Views
    L
    jojoba2011 wrote: This is not working and giving error ! What error? Syntax error? jojoba2011 wrote: I dont wanna to use Why? What's wrong with that? Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
  • Dynamic Stored Procedure

    help database
    8
    0 Votes
    8 Posts
    0 Views
    D
    Commish13 wrote: SET @SearchBy = @SearchBy + ',' IF REPLACE (@SearchBy, ',', 'ALL') <> '' what is the purpose of above statement and a condition?
  • error in sql server 2008

    database sql-server sysadmin tools help
    6
    0 Votes
    6 Posts
    0 Views
    J
    One of my Stored Procedures was using ۀ in its name and when i am getting script it was giving error!
  • Exporting PostgreSQL data to Excell

    database postgresql question
    5
    0 Votes
    5 Posts
    0 Views
    M
    Member 10427697 wrote: I want to know if its possible to make it work automatically Of course it is, think about it, you want the dates of the previous month calculated based on the current date. I'm absolutely certain PostGres has datetime functions similar to SQL Server. Alternatively you can pass in the 2 date parameters from the calling method. Never underestimate the power of human stupidity RAH
  • get the data from two tables

    tutorial
    4
    0 Votes
    4 Posts
    0 Views
    L
    Member 10263519 wrote: all data type varchar(50) :| Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
  • [Oracle] Create Index Online Vs Create Index

    database oracle visual-studio question
    2
    0 Votes
    2 Posts
    0 Views
    J
    Yes. Politicians are always realistically manoeuvering for the next election. They are obsolete as fundamental problem-solvers. Buckminster Fuller
  • 0 Votes
    6 Posts
    0 Views
    A
    Specify Columns Of Table B. Like Insert Into B (Col1,Col2,Col3) Select Col9,Col8,Col7 From A. Please Note That Data Type of Column Should Be Same.
  • How to create linked server MySQL?

    database mysql postgresql sql-server sysadmin
    2
    0 Votes
    2 Posts
    0 Views
    J
    Arun Sylvester J wrote: If yes, would you please tell me how? Following is what I used in google. It would suggest the specific answer is no. mysql stored procedure access remote database
  • constraints

    database sql-server sysadmin question
    3
    0 Votes
    3 Posts
    1 Views
    T
    I told you, Didn't I?[^] You should start learning before asking questions like these. Save your time, our time too. Here more than couple of ways to learn anything in Internet. Education Needed[^] thatraja Code converters | Education Needed | Plans
  • triggers

    database sql-server sysadmin question
    2
    0 Votes
    2 Posts
    0 Views
    T
    Did you search Google[^]? thatraja Code converters | Education Needed | Plans
  • Semicolon delimited lists in SQL

    help question database com design
    5
    0 Votes
    5 Posts
    0 Views
    dangD
    Peter Leow wrote: we will have to read and write the whole table Excellent point. .dan.g. AbstractSpoon Software email: abstractspoon2(at)optusnet(dot)com(dot)au
  • 0 Votes
    6 Posts
    0 Views
    J
    Jörgen Andersson wrote: Pyramid schemes are illegal in a larger part of the world, and I'm not being part of it! Good call. The OP lists the US as where they are are from and in many jurisdictions in the US a pyramid scheme can lead to a felony conviction.
  • How to create directory in SQL with Space

    help database tutorial
    12
    0 Votes
    12 Posts
    1 Views
    S
    Thank you very much it working for me
  • Suggestions on a simple video editor

    ios help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Dynamic Filter Stored Procedure

    database sharepoint
    2
    0 Votes
    2 Posts
    0 Views
    M
    The only way to do what you want is using dynamic sql, basically build a string and execute it. A better soluton isto pass in 3 discreet variables and test each one for content. Where ((Isnull(@UserName,'') == '' OR Table.UserName like @Username) and ((Isnull(@Sate,'') == '' OR Table.State like @State) Never underestimate the power of human stupidity RAH
  • how to write MAX query

    database tutorial career learning
    6
    0 Votes
    6 Posts
    2 Views
    P
    First of all, you need a field in the second table to capture date of salary.
  • 0 Votes
    4 Posts
    0 Views
    P
    Maciej Los wrote: too many subqueries. :thumbsup: I try to avoid subqueries; JOINs tend to work better in many situations.
  • storedprocedures

    question database announcement
    4
    0 Votes
    4 Posts
    0 Views
    L
    "Debugging"; as far is I can see, it'd select the "Else If(@ID1=5)", and execute that query. Replace those queries with a "print" statement, and see if it switches to the right one.
  • Alter statement -

    database sql-server sysadmin help
    3
    0 Votes
    3 Posts
    0 Views
    R
    Here's an example from BOL (2k8): CREATE TABLE dbo.doc_exy (column_a INT ) ; GO INSERT INTO dbo.doc_exy (column_a) VALUES (10) ; GO Straightforwardly: SELECT * FROM dbo.doc_exy Gets: 10 Now, doing the operation appears to suggest that no default value is ever needed: ALTER TABLE dbo.doc_exy ALTER COLUMN column_a DECIMAL (5, 2); GO SELECT * FROM dbo.doc_exy Shows what I mean: 10.00 DROP TABLE dbo.doc_exy ; GO
  • SRSS 2008 RepeatOnNewPage not really work on the “2nd last” page

    1
    0 Votes
    1 Posts
    0 Views
    No one has replied