1. Calling ASP2 applications

    Date: 01/03/06     Keywords: asp, web

    How do I instance an ASP2 application from a client machine from within the firewall? Despite that, I wrote it in Visual Studio 2005 Professional Edition, whenever I attempt, it tried to read it as if I wrote it for .Net framework 1.1 and not 2.0. I am calling it over HTTP (i.e., HTTP://pjohnson/website1/default.aspx) where the application resides in a folder in WWWRoot.

    Source: http://www.livejournal.com/community/sqlserver/39020.html

  2. Calling ASP2 applications

    Date: 01/03/06     Keywords: asp, web

    How do I instance an ASP2 application from a client machine from within the firewall? Despite that, I wrote it in Visual Studio 2005 Professional Edition, whenever I attempt, it tried to read it as if I wrote it for .Net framework 1.1 and not 2.0. I am calling it over HTTP (i.e., HTTP://pjohnson/website1/default.aspx) where the application resides in a folder in WWWRoot.

    Source: http://community.livejournal.com/sqlserver/39020.html

  3. Two completely unrelated SQL Server 2005 questions.

    Date: 12/30/05     Keywords: sql

    1. In query nalyzer, type either of the following and run it:
    PRINT 365/183
    PRINT CAST(365/183 AS float)

    If your answer is 1 (or 1.0), congratulations, you win. You get to tell me what switch we both need to flip to get the correct (mathematically, anyway) answer.

    * * *

    2. I'm porting a horribly-written Access application to SQL Server. It contains a table with three columns. Each of these columns corresponds to a dropdown box on a form. The way it's supposed to be written is that a value selected in column A will populate the list in column B, etc., since only certain values in column B should be present for any given value in column A. The monkeywrench in the works is that the values in B are not necessarily unique to the values in A, and the values in C are definitely not unique to the values in B-- but not all values in B are applicable to all values of A, and all values in C are not etc. As an example:

    A: Inpatient, Outpatient, Other
    B: Transplant, Maternity, Addiction Treatment
    C: Bone Marrow Transplant Allogenic, Caesarian Section, Emergency Room

    It's relatively obvious that Outpatient in A will never correspond to Transplant in B; Transplant will always, short of a medical miracle, be an inpatient procedure. Addiction Treatment, though, can be on either an inpatient or outpatient basis. (I'm lobbying for getting rid of "other" altogether.) Similarly, Bone Marrow Transplant Allergenic will, good lord willin' and cricks don't rise, never apply to maternity-- but Emergency Room could concievably apply to just about anything in either column A or column B, because you can show up at the ER needing, well, anything.

    What I've been mulling over is having three different lookup tables, each with two columns-- ID and Description-- and a fourth column that would list the valid IDs that can go together for each. That, however, ultimately saves me not much room, will require manual additions to the core table whenever new categories are added, and would probably end up being slower. (Actually, anything will end up being slower, seeing as the Access app takes the Chinese-menu method-- display anything and let the user pick whatever-- but I'd like to cut the speed decrease as much as possible.) We're still in the brainstorming phase with this, so there aren't any ideas which will undercut work that's already been done. If you have any to throw into the ring, I'd appreciate it.

    Thanks!

    Source: http://www.livejournal.com/community/sqlserver/38791.html

  4. Two completely unrelated SQL Server 2005 questions.

    Date: 12/30/05     Keywords: sql

    1. In query nalyzer, type either of the following and run it:
    PRINT 365/183
    PRINT CAST(365/183 AS float)

    If your answer is 1 (or 1.0), congratulations, you win. You get to tell me what switch we both need to flip to get the correct (mathematically, anyway) answer.

    * * *

    2. I'm porting a horribly-written Access application to SQL Server. It contains a table with three columns. Each of these columns corresponds to a dropdown box on a form. The way it's supposed to be written is that a value selected in column A will populate the list in column B, etc., since only certain values in column B should be present for any given value in column A. The monkeywrench in the works is that the values in B are not necessarily unique to the values in A, and the values in C are definitely not unique to the values in B-- but not all values in B are applicable to all values of A, and all values in C are not etc. As an example:

    A: Inpatient, Outpatient, Other
    B: Transplant, Maternity, Addiction Treatment
    C: Bone Marrow Transplant Allogenic, Caesarian Section, Emergency Room

    It's relatively obvious that Outpatient in A will never correspond to Transplant in B; Transplant will always, short of a medical miracle, be an inpatient procedure. Addiction Treatment, though, can be on either an inpatient or outpatient basis. (I'm lobbying for getting rid of "other" altogether.) Similarly, Bone Marrow Transplant Allergenic will, good lord willin' and cricks don't rise, never apply to maternity-- but Emergency Room could concievably apply to just about anything in either column A or column B, because you can show up at the ER needing, well, anything.

    What I've been mulling over is having three different lookup tables, each with two columns-- ID and Description-- and a fourth column that would list the valid IDs that can go together for each. That, however, ultimately saves me not much room, will require manual additions to the core table whenever new categories are added, and would probably end up being slower. (Actually, anything will end up being slower, seeing as the Access app takes the Chinese-menu method-- display anything and let the user pick whatever-- but I'd like to cut the speed decrease as much as possible.) We're still in the brainstorming phase with this, so there aren't any ideas which will undercut work that's already been done. If you have any to throw into the ring, I'd appreciate it.

    Thanks!

    Source: http://community.livejournal.com/sqlserver/38791.html

  5. The results pane has been cleared to conserve server resources.

    Date: 12/20/05     Keywords: sql

    Is there any way to stop this from occurring?

    (SQL Server 2000, most recent service pack applied.)

    Thanks.

    Source: http://www.livejournal.com/community/sqlserver/37960.html

  6. The results pane has been cleared to conserve server resources.

    Date: 12/20/05     Keywords: sql

    Is there any way to stop this from occurring?

    (SQL Server 2000, most recent service pack applied.)

    Thanks.

    Source: http://community.livejournal.com/sqlserver/37960.html

  7. A small problem

    Date: 12/08/05     Keywords: database, sql

    I am having some issues starting a procedure. I need to create a sql procedure where the user creates a new dog in a database. The information that is going to be inserted is : gender first, which will stop the program if not identified in the database, breed, which will go under unknown if there is no existing record in database, owner id, which will go under ORPHAN if no existing record, eye color, which will create a new entry for a new eye color is not already in DB, and finally create the dog with dog_id once all the other parts are taken care of. I need to have exception handling in this procedure as well. I would like someone to help me to start this.

    Source: http://www.livejournal.com/community/sqlserver/37683.html

  8. A small problem

    Date: 12/08/05     Keywords: database, sql

    I am having some issues starting a procedure. I need to create a sql procedure where the user creates a new dog in a database. The information that is going to be inserted is : gender first, which will stop the program if not identified in the database, breed, which will go under unknown if there is no existing record in database, owner id, which will go under ORPHAN if no existing record, eye color, which will create a new entry for a new eye color is not already in DB, and finally create the dog with dog_id once all the other parts are taken care of. I need to have exception handling in this procedure as well. I would like someone to help me to start this.

    Source: http://community.livejournal.com/sqlserver/37683.html

  9. This thing ROCKS!

    Date: 11/18/05     Keywords: database, sql, security, google

    http://www.sqledit.com/dg/


    Yesterday after lunch, I got one of those famous, hurried "critical" requests to export some data to a vendor for an important project. Someone from our Stock Administration team insisted on meeting with me to give me a USB drive to get the database image. Apparently, they needed someone to import the data on our system, then export it in a format requested by the vendor in order to test and configure a new offering for us.

    I was already irritated that yet another team had failed to document and obtain resources for their data requirements, therefore making an emergency for me that very important people would hear about if I didn't follow through. I did what I aways do, I said I'd look at it and see what could be done. Oh man...you know what I saw? This dude had been walking around all over the place with this little flash drive in is pocket with stock administration data for EVERYONE IN OUR COMPANY. This data included Social Security Numbers, Birthday's, Names, Addresses, Salaries, and Stock Options. AND he wanted me to just send it off to some company to play around with. I was pretty mad, especially when he had his manager call me to complain.

    I explained that this was in violation with our SOX commitments and that the data would have to be at the very least cleansed before it was sent out. I also mentioned that I didn't particularly want my SSN sent to parts unknown for a proof-of-concept project. After that I found a kind way of mentioning that carrying around sensitive data in an unsecure format is grounds for termination. Then his manager called the CIO. All the better, at least the CIO understands INFORMATION and the protection thereof!

    I didn't have a clue how to cleanse data, but it had to get done fast, so I did a google search for tools, and I found this little gem. The DTM Data Generator contained a robust set of tools for analyzing the SQL tables field by field, while retaining the referential integrity. It's very versatile. I'm definately going to use this again. I think I might finally generate those mean sets of data for our QA team to test against. This tool rocks.

    Source: http://www.livejournal.com/community/sqlserver/37213.html

  10. This thing ROCKS!

    Date: 11/18/05     Keywords: database, sql, security, google

    http://www.sqledit.com/dg/


    Yesterday after lunch, I got one of those famous, hurried "critical" requests to export some data to a vendor for an important project. Someone from our Stock Administration team insisted on meeting with me to give me a USB drive to get the database image. Apparently, they needed someone to import the data on our system, then export it in a format requested by the vendor in order to test and configure a new offering for us.

    I was already irritated that yet another team had failed to document and obtain resources for their data requirements, therefore making an emergency for me that very important people would hear about if I didn't follow through. I did what I aways do, I said I'd look at it and see what could be done. Oh man...you know what I saw? This dude had been walking around all over the place with this little flash drive in is pocket with stock administration data for EVERYONE IN OUR COMPANY. This data included Social Security Numbers, Birthday's, Names, Addresses, Salaries, and Stock Options. AND he wanted me to just send it off to some company to play around with. I was pretty mad, especially when he had his manager call me to complain.

    I explained that this was in violation with our SOX commitments and that the data would have to be at the very least cleansed before it was sent out. I also mentioned that I didn't particularly want my SSN sent to parts unknown for a proof-of-concept project. After that I found a kind way of mentioning that carrying around sensitive data in an unsecure format is grounds for termination. Then his manager called the CIO. All the better, at least the CIO understands INFORMATION and the protection thereof!

    I didn't have a clue how to cleanse data, but it had to get done fast, so I did a google search for tools, and I found this little gem. The DTM Data Generator contained a robust set of tools for analyzing the SQL tables field by field, while retaining the referential integrity. It's very versatile. I'm definately going to use this again. I think I might finally generate those mean sets of data for our QA team to test against. This tool rocks.

    Source: http://community.livejournal.com/sqlserver/37213.html

  11. orderby

    Date: 11/14/05     Keywords: no keywords

    Hi all!
    I have some table with some "name" field in it which looks like
    "Blah blah blah Part 1"
    "Blah blah blah Part 2"
    "Blah blah blah Part 3"
    when I query it
    select * from mytable orderby name
    it doesn't actually work in a "proper" way.
    I keep on getting something like
    "Blah blah blah Part 2"
    "Blah blah blah Part 1"
    "Blah blah blah Part 3"
    Do you know what should I do to make it work?

    Source: http://www.livejournal.com/community/sqlserver/37053.html

  12. orderby

    Date: 11/14/05     Keywords: no keywords

    Hi all!
    I have some table with some "name" field in it which looks like
    "Blah blah blah Part 1"
    "Blah blah blah Part 2"
    "Blah blah blah Part 3"
    when I query it
    select * from mytable orderby name
    it doesn't actually work in a "proper" way.
    I keep on getting something like
    "Blah blah blah Part 2"
    "Blah blah blah Part 1"
    "Blah blah blah Part 3"
    Do you know what should I do to make it work?

    Source: http://community.livejournal.com/sqlserver/37053.html

  13. Creating a new table from 2 columns

    Date: 10/28/05     Keywords: no keywords

    Hey guys, hopefully quick question:

    I have a table with 2 columns that looks like this called OldList:

    User Fruit
    -------------------------------
    Chris Apples
    Chris Grapes
    Chris Oranges
    Adam Apples
    Jordan Apples
    Jordan Oranges
    Mike Grapes
    Mike Oranges

    And I need to write a query to populate a new table (NewList), and the results should look like this:

    User Apples Grapes Oranges
    ----------------------------------
    Chris Yes Yes Yes
    Adam Yes
    Jordan Yes Yes
    Mike Yes Yes


    Any ideas?

    Thanks in advance!

    Source: http://www.livejournal.com/community/sqlserver/36652.html

  14. Creating a new table from 2 columns

    Date: 10/28/05     Keywords: no keywords

    Hey guys, hopefully quick question:

    I have a table with 2 columns that looks like this called OldList:

    User Fruit
    -------------------------------
    Chris Apples
    Chris Grapes
    Chris Oranges
    Adam Apples
    Jordan Apples
    Jordan Oranges
    Mike Grapes
    Mike Oranges

    And I need to write a query to populate a new table (NewList), and the results should look like this:

    User Apples Grapes Oranges
    ----------------------------------
    Chris Yes Yes Yes
    Adam Yes
    Jordan Yes Yes
    Mike Yes Yes


    Any ideas?

    Thanks in advance!

    Source: http://community.livejournal.com/sqlserver/36652.html

  15. seek, in a field

    Date: 10/14/05     Keywords: sql

    Is there an equivalent to the SEEK command in T-SQL?

    In other words, I need

    SELECT left (some_column, number_of_characters_until_you_hit_the_first_space_[which_is_not_uniform]) FROM some_table

    Source: http://www.livejournal.com/community/sqlserver/36422.html

  16. seek, in a field

    Date: 10/14/05     Keywords: sql

    Is there an equivalent to the SEEK command in T-SQL?

    In other words, I need

    SELECT left (some_column, number_of_characters_until_you_hit_the_first_space_[which_is_not_uniform]) FROM some_table

    Source: http://community.livejournal.com/sqlserver/36422.html

  17. Intellisense® style word completion

    Date: 10/05/05     Keywords: sql

    Intellisense® style word completion for MS Query Analyzer, VS.NET 2003, SQL Server Management Studio and VS 2005.

    http://www.promptsql.com/

    --

    This looks like a real slick tool, which would easily pay for itself after a day's use!

    (x-posted to various places)

    Source: http://www.livejournal.com/community/sqlserver/36137.html

  18. Intellisense® style word completion

    Date: 10/05/05     Keywords: sql

    Intellisense® style word completion for MS Query Analyzer, VS.NET 2003, SQL Server Management Studio and VS 2005.

    http://www.promptsql.com/

    --

    This looks like a real slick tool, which would easily pay for itself after a day's use!

    (x-posted to various places)

    Source: http://community.livejournal.com/sqlserver/36137.html

  19. Okay, I'm stumped...

    Date: 09/23/05     Keywords: no keywords

    the error message:
    "The conversion of the verchar value 'xxxxxxxxxxxx' overflowed an INT1 column. Use a large intereger column."

    The column is char(10). (The value is, actually, numeric; I x'ed it because it's a phone number.)

    I've checked, double-checked, and triple-checked that (a) the INSERT INTO statement is putting the value in the right place; (b) the table does have the column listed as char(10); (c) the variable names are consistent across the board in putting the INSERT INTO statement together.

    Anything else I should be looking at?

    Source: http://www.livejournal.com/community/sqlserver/35281.html

  20. Okay, I'm stumped...

    Date: 09/23/05     Keywords: no keywords

    the error message:
    "The conversion of the verchar value 'xxxxxxxxxxxx' overflowed an INT1 column. Use a large intereger column."

    The column is char(10). (The value is, actually, numeric; I x'ed it because it's a phone number.)

    I've checked, double-checked, and triple-checked that (a) the INSERT INTO statement is putting the value in the right place; (b) the table does have the column listed as char(10); (c) the variable names are consistent across the board in putting the INSERT INTO statement together.

    Anything else I should be looking at?

    Source: http://community.livejournal.com/sqlserver/35281.html

Previous page  ||  Next page


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home