Search results for query: *

  • Users: asest
  • Order by date
  1. A

    Question Checking existence of list item in sql database

    Okay, clearly if one is to find a record that doesn't exist in a database then the check can not be done inside the sql reader itself. Update to my query... How does one loop through a list to check against a db?
  2. A

    Question Checking existence of list item in sql database

    Hi I am trying to check where an item in my array list exists in the database. The list would have already been created at an earlier stage. Now that some items may have been removed from the database, I wish to check the list against that database before removing the items, from the list...
  3. A

    Question Display data from a dataTable or SqlDataAdapter

    Probably various ways of doing this and reasons why some ways are better than others. I am probably not going about things the best way but owing to my limited experience, it is what it is and any help would be much appreciated. I have pulled data from a sql database, put into a...
  4. A

    Question Looping through an array in JavaScript

    I am trying to set a array of elements to a certain style and for various reasons I need to do this in JavaScript. Can anyone tell me what might be wrong with the loop below? I am not too experienced with arrays or loops but am sure I just need a subtle alteration to the code. Thank you in...
  5. A

    Question Using a case statement to set a variable

    I worked it out, thanks anyway. DECLARE @YEAR as varchar(4); DECLARE @MONTH as varchar(4); SET @MONTH = MONTH(DATEADD(M,1,GETDATE())); SET @YEAR = CASE @MONTH WHEN '1' THEN CONVERT(INT,(YEAR(GETDATE()))) + 1 ELSE YEAR(GETDATE()) END;
  6. A

    Question Using a case statement to set a variable

    Hi, I am struggling to understand what is wrong with the following... DECLARE @YEAR as varchar(4); DECLARE @MONTH as varchar(4); SET @MONTH = MONTH(DATEADD(M,1,GETDATE())); CASE @YEAR WHEN @MONTH == '12' THEN '2011'; ELSE YEAR(GETDATE()); END I receive the following error...
  7. A

    SQL Server, Password changing and Session timeouts

    First post on here, hello everyone; hopefully I am in the right place to find some help. I have an issue relating somewhat to sessions, password management and SQL Server database using a ASP.NET & VB.NET. The problem is as follows... I want to change my password to my SQL database...
Back
Top