datasource

How do you configure a ColdFusion 8 datasource to connect to a local SQL Server 2008 server?

十年热恋 提交于 2019-12-13 04:57:59
问题 I've set up a local SQL 2008 Server, enabled SQL Authentication, created a user for ColdFusion to use and verified that I can connect with that username and password using SSMS. (Connect using MACHINENAME\SQLEXPRESS) However, I am unable to successfuly add the datasource in my CF Administrator, with the error being: Error establishing socket to host and port Is there additional configuration of the server or ColdFusion that is necessary to connect? 回答1: You should be able to just use

Simple Json connection not working

安稳与你 提交于 2019-12-13 04:33:22
问题 I am trying to familiarise myself with the kendo ui dataSource, I have never before used JSON and have constructed the following using your documentation: Html: <!doctype html> <html> <head> <title>Kendo UI Web</title> <link href="styles/kendo.common.min.css" rel="stylesheet" /> <link href="styles/kendo.default.min.css" rel="stylesheet" /> <script src="js/jquery.min.js"></script> <script src="js/kendo.web.min.js"></script> </head> <body> <div id="grid"></div> <script> $(document).ready

Android - Activity open on the emulator but not in device

夙愿已清 提交于 2019-12-13 04:31:17
问题 I develop a little project in android and run ok on the emulator, but in my device only the first Activity is shown. here's the cod of my Second Activity...: public class SecondActivity extends ListActivity { //database Source private DataSource datasource; public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.main); datasource = new DataSource(this); datasource.open(); File sdcard2 = Environment.getExternalStorageDirectory(); for(File f:

SQL Server Error, 'Keyword not supported 'datasource'

早过忘川 提交于 2019-12-13 04:09:31
问题 I'm currently trying to INSERT some values into a datasource, then display them on another page using the DataList control. However, after some testing and experimentation, I've found that the error comes from the very beginning. Here is the code I have bound to my button. protected void btnSend_Click(object sender, EventArgs e) { Page.Validate("vld2"); SendMail(); lblMsgSend.Visible = true; txtPhone.Text = ""; txtEmail.Text = ""; txtName.Text = ""; txtComment.Text = ""; //SQL Server Database

Transform apollo-datasource-rest response structure to adapt to the already defined remote schema

橙三吉。 提交于 2019-12-13 03:56:12
问题 We have remote schema already. We get Apollo datasource response by hitting the REST APIs using apollo-datasource-rest. The format of the json response does not match the schema. The task is to transform the json response to match the schema and return the result against the user query. How to achieve this? E.g REST API response: { "members": { "name": "john", "street_address": "10 Barley St." } } Our remote graphql schema: type Users { username: String! street: String! } Any ideas or help or

Dropdownlist populated from datasource - values are inaccessible from code behind

僤鯓⒐⒋嵵緔 提交于 2019-12-13 03:36:40
问题 I have an asp dropbox which I populate from database: this is the aspx <asp:DropDownList runat="server" ID="ddl_last" AppendDataBoundItems="true"> and this is the cs: ddl_last.DataSource = eggsContext.Customers; ddl_last.DataValueField = "last_name"; ddl_last.DataTextField = "last_name"; ddl_last.DataBind(); When I try to get ddl_last.SelectedValue from the c# code I get nothing. infact ddl_last.Items count is 0! When I don't populate it from code, but write in the aspx <asp:ListItem Text=

UITableView datasource functions not called (swift)

余生长醉 提交于 2019-12-13 01:51:20
问题 So I had this working a hot second ago, but for some reason it's stopped working and the tableview just appears blank. I set the Detail View Controller as a UITableViewDataSource and UITableViewDelegate and did tableview.datasource = self as well as for the delegate but the methods are just not called. It's builds and runs and everything though. It stopped working when I changed the style to grouped, I'm not sure if that has anything to do with it although I can't see a problem in the code.

Connecting a groovy application to SQL server Express

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 16:40:20
问题 I was following the tutorial below but there must be some significant steps where knowledge, that I don't have, is being assumed. http://padcom13.blogspot.co.uk/2011/01/setting-up-sql-server-2008-express-to.html below is the setup in my datasource.groovy username = "sa" password = "" url = "jdbc:sqlserver://localhost:1433;databaseName=Sandpit" driverClassName = "com.microsoft.sqlserver.jdbc.SQLServerDriver" dialect = "org.hibernate.dialect.SQLServerDialect" and below is the error popping up

LINQ Query to DataTable.DataSource

99封情书 提交于 2019-12-12 14:34:04
问题 I am trying to perform a LINQ query on a DataTable and show the result in another DataTable. My source DataTable looks something like this: DataTable myDataTable = new DataTable(); myDataTable.Columns.Add("OrderID", typeof(int)); myDataTable.Columns.Add("Date", typeof(DateTime)); myDataTable.Columns.Add("UnitsPurchased", typeof(int)); The resulting DataTable looks like this when filled: Order ID Date Units Purchased 16548 10/15/09 250 17984 11/03/09 512 20349 01/11/10 213 34872 01/15/10 175

Open Word document from command line with additional data source parameter

允我心安 提交于 2019-12-12 13:26:31
问题 It is possible to open a word document from the command line using this: rundll32 url.dll,FileProtocolHandler path.to.word.document.doc Unfortunately, that document needs an external data source, so the path of that data source has to be set manually once it is opened. Is there a more convenient way to provide an additional parameter to point to the data source? 回答1: You can open a word document using winword.exe <filepath> To use winword in command prompt you need to set your path variable